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

Update Category by id

PATCH
/categories/{id}

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
Path Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠400Invalid UUID
🟠400Bad Request
🟠401Unauthorized API KEY
🟠403Unauthorized roles
🟠404Entity not found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://prod.your-api-server.com/api/core/v2/categories/{{core_category_id}}' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "locales": [
        {
            "id": "ed895f45-5397-4854-a565-924c49be5ae0",
            "name": "activities",
            "locale": "en"
        },
        {
            "id": "3ef4f60c-287f-40a3-840c-8993fb4c981d",
            "name": "activités",
            "locale": "fr"
        }
    ],
    "svg_icon": "<svg width=\"16\" height=\"16\" fill=\"currentColor\" viewBox=\"0 0 16 16\">\n  <path fill-rule=\"evenodd\" d=\"M8 9.984C10.403 9.506 12 7.48 12 5a4 4 0 0 0-8 0c0 2.48 1.597 4.506 4 4.984M13 5c0 2.837-1.789 5.227-4.52 5.901l.244.487a.25.25 0 1 1-.448.224l-.008-.017c.008.11.02.202.037.29.054.27.161.488.419 1.003.288.578.235 1.15.076 1.629-.157.469-.422.867-.588 1.115l-.004.007a.25.25 0 1 1-.416-.278c.168-.252.4-.6.533-1.003.133-.396.163-.824-.049-1.246l-.013-.028c-.24-.48-.38-.758-.448-1.102a3 3 0 0 1-.052-.45l-.04.08a.25.25 0 1 1-.447-.224l.244-.487C4.789 10.227 3 7.837 3 5a5 5 0 0 1 10 0m-6.938-.495a2 2 0 0 1 1.443-1.443C7.773 2.994 8 2.776 8 2.5s-.226-.504-.498-.459a3 3 0 0 0-2.46 2.461c-.046.272.182.498.458.498s.494-.227.562-.495\"/>\n</svg>\n"
}'
Response Response Example
200 - 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:15
Previous
Category by id
Next
Delete Category by id
Built with