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-07-26T20:26:26.553Z",
        "createdBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "deletedAt": "2024-07-26T20:26:26.553Z",
        "deletedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "description": "string",
        "iconURL": "string",
        "id": 0,
        "isFullWidth": true,
        "name": "string",
        "state": "active",
        "templateCount": 0,
        "templateLastUsed": "2024-07-26T20:26:26.553Z",
        "updatedAt": "2024-07-26T20:26:26.553Z",
        "updatedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }