Create new Template Catalog

Prev Next
Post
/templates/

Operation is used to create a new template catalog.

Security
API Key: Token
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Template Catalog to be created

Expand All
object

Template Catalog

contentType
integer Required

Reference to content type

isActive
boolean

Whether the template catalog is active

Defaulttrue
name
string Required

Catalog name

template
object Required

Template data stored as JSON

templateJsonLabel
object Required

Template JSON labels

Responses
201

A newly created Template Catalog

{
  "contentType": 1,
  "createdBy": "test.creator",
  "createdTs": "19.03.2025",
  "id": 838,
  "isActive": true,
  "name": "test template catalog name",
  "template": [
    {
      "field1": "value1",
      "field2": "value2"
    }
  ],
  "templateJsonLabel": [
    {
      "field1": "value1",
      "field2": "value2"
    }
  ],
  "updatedBy": "test.updater",
  "updatedTs": "19.03.2025"
}
Expand All
object

Template Catalog

contentType
integer

Reference to content type

createdBy
string

User who created the template catalog

createdTs
string (date-time)

Created date and time

id
integer

Unique id of template catalog

isActive
boolean

Whether the template catalog is active

Defaulttrue
listUrl
string

URL to the template catalog list

name
string

Catalog name

template
object

Template data stored as JSON

templateJsonLabel
object

Template JSON labels

updatedBy
string

User who updated the template catalog

updatedTs
string (date-time)

Last updated date and time

400

There was an error in request. Usually field validation failed.

{
  "contentType": [
    "This field is required."
  ],
  "name": [
    "This field is required."
  ],
  "template": [
    "This field is required."
  ],
  "templateJsonLabel": [
    "This field is required."
  ]
}
object

Fields which failed validation

property*
Array of string additionalProperties

List of validation errors for this fieldname

string

Validation error

401

Authentication credentials are missing or invalid

{
  "details": "Authentication credentials were not provided"
}
object
details
string

Detailed description of error