Website

Deactivate an existing advert

Last update: 11.12.2023

POSThttps://www.autovit.ro/api/open/account/adverts/:id/deactivate

Permission: write

Header

Field Type Description
User-Agent string Account email.
Example request:
		POST /account/adverts/49473/deactivate HTTP/1.1

{
     "reason": {
         "id": "1",
         "description": "Reason to deactivate the Ad"
     }
 }

 User-Agent: $USER_EMAIL
 Content-Type: application/json
 Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard
Success response:
		HTTP/1.1 204 No Content			
		
Copied to clipboard
Error response example:
		HTTP/1.1 400 Bad Request
{
    "error":
    {
        "type": "BadRequestException",
        "message": "You have to provide correct ID."
    }
}			
		
Copied to clipboard