POST api/v1/company/image

Saves the passed in company image. If an array of image data (the Source property) is passed in that will be uploaded into our CDN for distribution. If the new image is being passed into an existing image record that will trigger an overwrite of the old image assigned to this record with the new one. So only do that if you are trying to swap out an image globally.

Request Information

URI Parameters

None.

Body Parameters

Ghostery.Privacy.Common.Objects.Company.CompanyImage
NameDescriptionTypeAdditional information
Id

integer

None.

Url

string

None.

AssetType

string

None.

Source

Collection of byte

None.

ImageType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "url": "sample string 2",
  "assetType": "sample string 3",
  "source": "QEA=",
  "imageType": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'Ghostery.Privacy.Common.Objects.Company.CompanyImage'.

Response Information

Resource Description

The updated image object

Ghostery.Privacy.Common.Objects.Company.CompanyImage
NameDescriptionTypeAdditional information
Id

integer

None.

Url

string

None.

AssetType

string

None.

Source

Collection of byte

None.

ImageType

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "url": "sample string 2",
  "assetType": "sample string 3",
  "source": "QEA=",
  "imageType": "sample string 4"
}