Website

Read category data

Last update: 11.12.2023

Returns details of category of given id.

GET: https://www.autovit.ro/api/open/categories/:id

Permission: read

Header

Field Type Description
User-Agent string Account email.

Example request:
		HTTP/1.1 GET /categories/29

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard
Success response:
		HTTP/1.1 200 OK
{
    "id": 29,
    "names":
    {
        "pl": "Cars",
        "en": "Cars"
    },
    "code": "cars",
    "path_url": "cars",
    "depth": 1,
    "parameters":
    [
        {
            "code": "has_vin",
            "type": "checkbox",
            "labels":
            {
                "pl": "Ma VIN",
                "en": "Has VIN"
            },
            "required": false,
            "purpose": "search",
            "options": null
        },
        {
            "code": "make",
            "type": "select",
            "labels":
            {
                "pl": "Marka",
                "en": "Make"
            },
            "required": true,
            "purpose": "both",
            "options":
            {
                "acura":
                {
                    "pl": "Acura",
                    "en": "Acura"
                },
                "aixam":
                {
                    "pl": "Aixam",
                    "en": "Aixam"
                },
...
            }
        }
    ]
}			
		
Copied to clipboard