POST ProductManager/companies/{companyId}/asset
Add an image to the Asset Library. Use results from this call to assign images to products.
Information:
Base URL:
https://api.covasoft.net/productlibrary
Sample request using multipart/form-data:
POST /ProductManager/companies/{CompanyId}/asset
Content-Type: multipart/form-data; boundary="boundary"
--boundary
Content-Disposition: form-data; name="file"; filename="product-image.jpg"
Content-Type: image/jpeg
[Binary file content]
--boundary--
Supported image formats:
- JPEG/JPG
- PNG
- GIF
Maximum file size: 10MB
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
companyId |
The unique Company Id that was provided in your onboarding package |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Asset details including the generated asset ID and URL
AssetResultName | Description | Type | Additional information |
---|---|---|---|
width | integer |
None. |
|
height | integer |
None. |
|
id |
Id of the asset in the Asset Library. Use this to assign the image to products. |
globally unique identifier |
None. |
href | string |
None. |
|
md5Checksum | string |
None. |
|
sizeInBytes | integer |
None. |
|
name | string |
None. |
|
mimeType |
The MIME type associated with the content. Use this when assigning the asset to products. |
string |
None. |
success | boolean |
None. |
Response Formats
application/json, text/json
{ "width": 1, "height": 2, "id": "9321d5ce-1cdb-421e-b68a-f19e1724623f", "href": "sample string 4", "md5Checksum": "sample string 5", "sizeInBytes": 6, "name": "sample string 7", "mimeType": "sample string 8", "success": true }