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.CompanyImageName | Description | Type | Additional 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:
Response Information
Resource Description
The updated image object
Ghostery.Privacy.Common.Objects.Company.CompanyImageName | Description | Type | Additional 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" }