Skip to content

CreateTemplate ​

Type: object additionalProperties: false

FieldRequiredTypeDescription and constraints
template_nameYesstringOwn-project alias, optionally prefixed by its team slug. Normalized to lowercase. minLength: 1
maxLength: 255
pattern: "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)?$"
tagNostring / nullNormalized to lowercase; UUID build references are rejected. Omission or null checks default but stores an untagged reference. minLength: 1
maxLength: 128
pattern: "^[A-Za-z0-9_.-]+$"
descriptionNostring / nullmaxLength: 4096
activeNobooleandefault: true

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "template_name"
  ],
  "properties": {
    "template_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "pattern": "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)?$",
      "description": "Own-project alias, optionally prefixed by its team slug. Normalized to lowercase."
    },
    "tag": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_.-]+$",
      "description": "Normalized to lowercase; UUID build references are rejected. Omission or null checks default but stores an untagged reference."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 4096
    },
    "active": {
      "type": "boolean",
      "default": true
    }
  }
}

All schemas · HTTP API