POST/spaces/api/v1/templates/local.json

create a local/custom template

Body Params

    • Name
      template
      Type
      object
      Description
      TemplateCreate adds a new Template to the data store.

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
    • Code
      404
      Type
      object
      Schema
      Description
      404 Not Found
    • Code
      500
      Type
      object
      Schema
      Description
      500 Internal Server Error

    Examples

    201 Created

    Template
    {
      "template": {
        "content": "string",
        "contentRevision": 0,
        "createdAt": "2024-04-24T00:52:20.158Z",
        "createdBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "deletedAt": "2024-04-24T00:52:20.158Z",
        "deletedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "description": "string",
        "iconURL": "string",
        "id": 0,
        "isFullWidth": true,
        "name": "string",
        "state": "active",
        "templateCount": 0,
        "templateLastUsed": "2024-04-24T00:52:20.158Z",
        "updatedAt": "2024-04-24T00:52:20.158Z",
        "updatedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }