POST /v3/templates
Create template (v3)
Create a new template
Тело запроса
Обязательно: да
application/json
Схема: TemplateBuildRequestV3
name·string· необязательноName of the template. Can include a tag with colon separator (e.g. "my-template" or "my-template:v1"). If tag is included, it will be treated as if the tag was provided in the tags array.
Максимальная длина:
128tags·array<string>· необязательноTags to assign to the template build
cpuCount·CPUCount· необязательноCPU cores for the sandbox
Формат:
int32Минимум:
1memoryMB·MemoryMB· необязательноMemory for the sandbox in MiB
Формат:
int32Минимум:
128
Ответы
202
The build was requested successfully
Content-Type: application/json
Схема: TemplateRequestResponseV3
templateID·string· обязательноIdentifier of the template
buildID·string· обязательноIdentifier of the last successful build for given template
public·boolean· обязательноWhether the template is public or only accessible by the team
names·array<string>· обязательноNames of the template
tags·array<string>· обязательноTags assigned to the template build
400
Bad request
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
401
Authentication error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
403
Forbidden
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError
500
Server error
Content-Type: application/json
Схема: Error
code·integer· обязательноError code
Формат:
int32message·string· обязательноError