К содержимому

CreateTemplate ​

Тип: object additionalProperties: false

ПолеОбязательноеТипОписание и ограничения
template_nameДаstringAlias собственного проекта, при необходимости с префиксом team slug. Приводится к нижнему регистру. minLength: 1
maxLength: 255
pattern: "^[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)?$"
tagНетstring / nullПриводится к нижнему регистру. UUID сборки не принимается. При отсутствии или null проверяется default, но имя сохраняется без тега. minLength: 1
maxLength: 128
pattern: "^[A-Za-z0-9_.-]+$"
descriptionНетstring / nullmaxLength: 4096
activeНетbooleandefault: 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
    }
  }
}

Все схемы · HTTP API