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
AssignAssetName | 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": "b066b35e-7dc0-403a-9102-1207e193e1dd", "name": "sample string 2", "mimeType": "sample string 3" }
Response Information
Resource Description
AssignAssetResultName | 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" }