Update an image of an ad
Endpoint for updating images by provided id.
Path parameters
-
adId
string Required Id of an advertisement. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the advertisement insert endpoint.
-
imageId
string Required Id of an image. It is either id that was provided in the response of the insert endpoint or it can be thirdPartyId, if it has been provided in the request body of the image insert endpoint.
PATCH
/advertising/v1.0/ads/{adId}/images/{imageId}
curl \
-X PATCH http://apis.public-staging.reas.cz/advertising/v1.0/ads/63d9007e66fc41b2cd1057c6/images/63d9007e66fc41b2cd1057c6 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"order":1}'
Request example
{
"order": 1
}
Response examples (200)
{
"success": true,
"data": {
"id": "string",
"url": "string",
"order": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"thirdPartyId": "string"
}
}