This section is restricted for partners use. If You accessing API with "password" grant type - go to Account section.
PUT: https://www.autovit.ro/api/open/adverts/:id/status
Permission: advertsWrite
Header
| Field | Type | Description |
| User-Agent | string | Account email. |
Parameter
| Field | Type | Description |
| id | Number | Id of updated advert |
| status | String | Available values: "active", "deactivated" |
Example request:
PUT /adverts/999/status HTTP/1.1
User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN
{
"status": "deactivated",
}
Copied to clipboard
Success response:
HTTP/1.1 200 OK
{
"status": "removed_by_user",
}
Copied to clipboard
Error response example:
HTTP/1.1 400 Bad Request
{
"error":
{
"type": "BadRequestException",
"message": "Wrong status change requested",
}
}
Copied to clipboard