Create a new product image with the provided information
POST/api/company/:company_id/product/:product_id/image
Create a new product image with the provided information
Request
Path Parameters
company_id uuidrequired
The id of the company
product_id uuidrequired
The id of the product
- application/json
Body
required
url urlrequired
The URL of the product image.
Responses
- 200
- 404
- default
Detailed information about the product
- application/json
- Schema
- Example (from schema)
Schema
id uuidrequired
The unique identifier of the product image.
company_id uuidrequired
The unique identifier of the company.
url urlrequired
The URL of the product image.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"company_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"url": "string"
}
Company / Product not found
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
code int32required
The error code
message stringrequired
A human-readable error message
{
"code": 0,
"message": "string"
}
Loading...