PUT ProductManager/products/{slugId}/assets?companyEntityId={companyEntityId}
Add the image to a product.
Information:
Base URL:
https://api.covasoft.net/productlibrary
Example of a call would be:
https://api.covasoft.net/productlibrary/ProductManager/products/{slugId}/assets?companyEntityId={companyEntityId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| companyEntityId |
The unique Company Id that was provided in your onboarding package |
integer |
Required |
| slugId |
The Slug of the product. Typically in the format `M12345` or `M12345-V2` |
string |
Required |
Body Parameters
AssignAsset| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id from the POST /asset call |
globally unique identifier |
None. |
| name |
name that will display in hub under the image |
string |
None. |
| mimeType |
mimeType from the POST /asset call |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "a8e99e8c-a4ae-428b-be2b-5b1b4a4c0a0d",
"name": "sample string 2",
"mimeType": "sample string 3"
}
Response Information
Resource Description
AssignAssetResult| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| mimeType | string |
None. |
|
| name | string |
None. |
|
| isHidden |
Ignore |
boolean |
None. |
| isRolledUp |
Ignore |
boolean |
None. |
| type | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"mimeType": "sample string 2",
"name": "sample string 3",
"isHidden": true,
"isRolledUp": true,
"type": "sample string 6"
}