Добавить столбцы

Request

POST

https://api.wiki.yandex.net/v1/grids/{idx}/columns

Path parameters

Name

Description

idx*

Type: string<uuid4>

Body

application/json
{
    "revision": "string",
    "position": 0,
    "columns": [
        {
            "id": "string",
            "slug": "string",
            "title": "string",
            "type": "string",
            "required": false,
            "width": 0,
            "width_units": "%",
            "pinned": "left",
            "color": "blue",
            "multiple": false,
            "format": "yfm",
            "ticket_field": "assignee",
            "select_options": [
                "string"
            ],
            "mark_rows": false,
            "description": "string"
        }
    ]
}

Name

Description

columns*

Type: NewColumnSchema[]

position

Type: integer

revision

Type: string

NewColumnSchema

Name

Description

required*

Type: boolean

slug*

Type: string

title*

Type: string

Min length: 1

Max length: 255

type*

Type: ColumnType

An enumeration.

Enum: string, number, date, select, staff, checkbox, ticket, ticket_field

color

Type: BGColor

An enumeration.

Enum: blue, yellow, pink, red, green, mint, grey, orange, magenta, purple, copper, ocean

description

Type: string

Описание

Max length: 1024

format

Type: TextFormat

Только для text; None — текст без форматирования.

Enum: yfm, wom, plain

id

Type: string

mark_rows

Type: boolean

Только для checkbox; Отмечает ряд как выполненный в интерфейсе.

multiple

Type: boolean

Только для select и staff; Включает множественный выбор.

pinned

Type: ColumnPinTypes

An enumeration.

Enum: left, right

select_options

Type: string[]

Только для select; Задает варианты выбора.

ticket_field

Type: TicketField

Только для ticket-field;

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

width

Type: integer

width_units

Type: WidthUnits

An enumeration.

Enum: %, px

ColumnType

An enumeration.

Type

Description

ColumnType

Enum: string, number, date, select, staff, checkbox, ticket, ticket_field

BGColor

An enumeration.

Type

Description

BGColor

Enum: blue, yellow, pink, red, green, mint, grey, orange, magenta, purple, copper, ocean

TextFormat

An enumeration.

Type

Description

TextFormat

Enum: yfm, wom, plain

ColumnPinTypes

An enumeration.

Type

Description

ColumnPinTypes

Enum: left, right

TicketField

An enumeration.

Type

Description

TicketField

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

WidthUnits

An enumeration.

Type

Description

WidthUnits

Enum: %, px

Responses

200 OK

OK

Body

application/json
{
    "revision": "string"
}

Name

Description

revision

Type: string

No longer supported, please use an alternative and newer version.