PUT: https://www.autovit.ro/api/open/imageCollections/:id/images/:imageId
Permission: write
Header
| Field | Type | Description |
|---|---|---|
| User-Agent | string | Account email. |
Parameter
| Field | Type | Description |
|---|---|---|
| source | Object | Url of updated image |
| imageId | Number | Id of updated image |
| id | Number | Images collection id |
Example request:
PUT /imageCollections/821165357/images/2 HTTP/1.1
User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
{
"source": "http://lorempixel.com/800/600/abstract/"
}
Copied to clipboard
Success response:
HTTP/1.1 200 OK
{
"0": "http://lorempixel.com/732/488/transport/1/",
"1": "http://lorempixel.com/148/110/transport/1/",
"2": "http://lorempixel.com/320/240/transport/1/",
"3": "http://lorempixel.com/1080/720/transport/1/"
}
Copied to clipboard
Error response example:
HTTP/1.1 400 Bad Request
{
"error":
{
"type": "BadRequestException",
"message": "Remote file not exists"
}
}
Copied to clipboard