Website

Activate an existing advert

Last update: 11.12.2023

POST: https://www.autovit.ro/api/open/account/adverts/:id/activate

Permission: write

Header

Field Type Description
User-Agent string Account email.

 

Example request:
		POST /account/adverts/947237/activate HTTP/1.1

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard
Success response:
		HTTP/1.1 200 OK

"The ad has been add to queue, waiting to activation"			
		
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