Skip to content

Create car make

POST
/admin/cars/makes

Создание марки автомобиля

Authorizations

sessionCookie

PHP session cookie (HTTP-only, Secure, SameSite=Lax)

Type
API Key (cookie: PARTIZAP_SESSION)
+
csrfToken

CSRF token from CSRF_TOKEN cookie. Required on POST/PUT/PATCH/DELETE for
endpoints declaring csrfToken in their security block. Unauthenticated
session-establishment endpoints (login, register, forgot-password,
reset-password, validate-reset-token, admin login, admin TOTP verify) are
exempt — they declare security: [] and accept POST without a CSRF token.

Type
API Key (header: X-CSRF-TOKEN)

Request Body

application/json
JSON
{
  
"name": "string"
}

Responses

Car make created

application/json
JSON
{
  
"data": {
  
  
"id": 0,
  
  
"name": "string",
  
  
"slug": "string",
  
  
"logo_url": "string",
  
  
"is_popular": true,
  
  
"cyrillic_name": "string",
  
  
"country": "string",
  
  
"year_from": 0,
  
  
"year_to": 0
  
}
}

Playground

Server
Authorization
Body

Samples

Powered by VitePress OpenAPI