Backoffice API
  1. Templates
Backoffice API
  • Back to home
  • Docs
  • ContentTypes
    • Paginated ContentTypes
      GET
    • Create ContentType
      POST
    • ContentType by id
      GET
    • Update ContentType by id
      PATCH
    • Remove ContentType by id
      DELETE
  • Templates
    • Paginated Templates
      GET
    • Create Template
      POST
    • Template by id
      GET
    • Update Template by id
      PATCH
    • Remove Template by id
      DELETE
  • Contents
    • Paginated Contents
      GET
    • Create Content
      POST
    • Content by id
      GET
    • Update Content by id
      PATCH
    • Delete Content by id
      DELETE
    • Restore soft deleted Content by id
      POST
    • Switch Content Template by id
      POST
  • Metadata
    • All Content Metadata
      GET
    • Update all Content Metadata
      PUT
  • Blocks
    • All blocks by Content id
      GET
    • Create Block in a Content Locale
      POST
    • Update Block by id
      PATCH
    • Remove Block by id
      DELETE
  1. Templates

Create Template

POST
/templates

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/docs/v2/templates' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "content_type_id": "94a0ecd9-8a2c-4912-8f3b-3707a8e91445",
    "key": "string",
    "locales": [
        {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "locale": "en",
            "name": "string",
            "default_subtitle_html": "string",
            "deleted_at": "2019-08-24T14:15:22Z"
        }
    ],
    "title_html": {
        "is_enabled": true,
        "min_length": 0,
        "max_length": 0,
        "suggested_length": 0
    },
    "subtitle_html": {
        "is_enabled": true,
        "min_length": 0,
        "max_length": 0,
        "suggested_length": 0
    },
    "lead_html": {
        "is_enabled": true,
        "min_length": 0,
        "max_length": 0,
        "suggested_length": 0
    },
    "location": {
        "is_enabled": false
    },
    "visual": {
        "is_enabled": true,
        "allowed_types": [
            "none"
        ]
    },
    "visibility": {
        "is_enabled": false,
        "allowed_visibilities": [
            "free"
        ]
    },
    "authors": {
        "is_enabled": false
    },
    "blocks": {
        "is_enabled": true,
        "allowed_kinds": [
            "data"
        ]
    }
}'
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": "2019-08-24T14:15:22Z"
            }
        ],
        "svg_icon": "string",
        "inserted_at": "2019-08-24T14:15:22Z",
        "updated_at": "2019-08-24T14:15:22Z"
    }
}
Modified at 2025-06-19 16:41:48
Previous
Paginated Templates
Next
Template by id
Built with