Добавить столбцы
Request
POST
https://api.wiki.yandex.net/v1/grids/{idx}/columns
Path parameters
|
Name |
Description |
|
idx |
Type: string<uuid4> Example: `` |
Body
application/json
{
"revision": "example",
"position": 0,
"columns": [
{
"id": "example",
"slug": "example",
"title": "example",
"type": "string",
"required": true,
"width": 0,
"width_units": "%",
"pinned": "left",
"color": "blue",
"multiple": true,
"format": "yfm",
"ticket_field": "assignee",
"select_options": [
"example"
],
"mark_rows": true,
"description": "example"
}
]
}
|
Name |
Description |
|
columns |
Type: NewColumnSchema[] Example
|
|
position |
Type: integer |
|
revision |
Type: string Example: |
ColumnType
An enumeration.
Type: string
Enum: string, number, date, select, staff, checkbox, ticket, ticket_field
WidthUnits
An enumeration.
Type: string
Enum: %, px
ColumnPinTypes
An enumeration.
Type: string
Enum: left, right
BGColor
An enumeration.
Type: string
Enum: blue, yellow, pink, red, green, mint, grey, orange, magenta, purple, copper, ocean
TextFormat
An enumeration.
Type: string
Enum: yfm, wom, plain
TicketField
An enumeration.
Type: string
Enum: assignee, components, created_at, deadline, description, end, estimation, fixversions, followers, last_comment_updated_at, original_estimation, parent, pending_reply_from, priority, project, queue, reporter, resolution, resolved_at, sprint, start, status, status_start_time, status_type, storypoints, subject, tags, type, updated_at, votes
NewColumnSchema
|
Name |
Description |
|
required |
Type: boolean |
|
slug |
Type: string Example: |
|
title |
Type: string Min length: Max length: Example: |
|
type |
Type: ColumnType An enumeration. Enum: |
|
color |
Type: BGColor An enumeration. Enum: |
|
description |
Type: string Описание Max length: Example: |
|
format |
All of 1 type
Только для Example: |
|
id |
Type: string Example: |
|
mark_rows |
Type: boolean Только для |
|
multiple |
Type: boolean Только для |
|
pinned |
Type: ColumnPinTypes An enumeration. Enum: |
|
select_options |
Type: string[] Только для Example
|
|
ticket_field |
All of 1 type
Только для Example: |
|
width |
Type: integer |
|
width_units |
Type: WidthUnits An enumeration. Enum: |
Example
{
"id": "example",
"slug": "example",
"title": "example",
"type": "string",
"required": true,
"width": 0,
"width_units": "%",
"pinned": "left",
"color": "blue",
"multiple": true,
"format": "yfm",
"ticket_field": "assignee",
"select_options": [
"example"
],
"mark_rows": true,
"description": "example"
}
Responses
200 OK
OK
Body
application/json
{
"revision": "example"
}
|
Name |
Description |
|
revision |
Type: string Example: |
No longer supported, please use an alternative and newer version.