Backoffice API
  1. Categories
Backoffice API
  • Back to home
  • Core
  • Assets
    • Images
      • Create Asset Image
      • Asset Image by id
      • Asset Image by key
      • Asset Image by hash
      • Delete Asset Image by id
      • Restore soft deleted Asset image by id
  • Categories
    • Paginated Categories
      GET
    • Create Category
      POST
    • Category by id
      GET
    • Update Category by id
      PATCH
    • Delete Category by id
      DELETE
    • Restore soft deleted Category by id
      POST
  • References
    • Create Reference
      POST
    • Reference by ref
      GET
    • Remove Reference by ref
      DELETE
  1. Categories

Create Category

POST
/categories

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
API Key
Add parameter in query
x-api-key
Example:
x-api-key: ********************
or
Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠400Bad Request
🟠401Unauthorized API KEY
🟠403Unauthorized roles
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://prod.your-api-server.com/api/core/v2/categories' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "locales": [
        {
            "locale": "en",
            "name": "Air Industry"
        },
        {
            "locale": "fr",
            "name": "Industrie aéronautique"
        }
    ],
    "svg_icon": "<svg width='\''16'\'' height='\''16'\'' fill='\''currentColor'\'' viewBox='\''0 0 16 16'\''><path d='\''M6.428 1.151C6.708.591 7.213 0 8 0s1.292.592 1.572 1.151C9.861 1.73 10 2.431 10 3v3.691l5.17 2.585a1.5 1.5 0 0 1 .83 1.342V12a.5.5 0 0 1-.582.493l-5.507-.918-.375 2.253 1.318 1.318A.5.5 0 0 1 10.5 16h-5a.5.5 0 0 1-.354-.854l1.319-1.318-.376-2.253-5.507.918A.5.5 0 0 1 0 12v-1.382a1.5 1.5 0 0 1 .83-1.342L6 6.691V3c0-.568.14-1.271.428-1.849m.894.448C7.111 2.02 7 2.569 7 3v4a.5.5 0 0 1-.276.447l-5.448 2.724a.5.5 0 0 0-.276.447v.792l5.418-.903a.5.5 0 0 1 .575.41l.5 3a.5.5 0 0 1-.14.437L6.708 15h2.586l-.647-.646a.5.5 0 0 1-.14-.436l.5-3a.5.5 0 0 1 .576-.411L15 11.41v-.792a.5.5 0 0 0-.276-.447L9.276 7.447A.5.5 0 0 1 9 7V3c0-.432-.11-.979-.322-1.401C8.458 1.159 8.213 1 8 1s-.458.158-.678.599'\''/></svg>"
}'
Response Response Example
201 - Example 1
{
    "data": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "locales": [
            {
                "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
                "locale": "en",
                "name": "string",
                "deleted_at": "string"
            }
        ],
        "svg_icon": "string",
        "is_archived": false,
        "inserted_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z",
        "deleted_at": "string"
    }
}
Modified at 2025-06-19 16:41:10
Previous
Paginated Categories
Next
Category by id
Built with