Clone Grid

Starts an asynchronous operation to copy a dynamic table.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

POST

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

Path parameters

Name

Description

idx

Type: string<uuid4>

Dynamic table UUID. The value of idx is the same as the id field value in the response to POST /v1/grids, or results[].id in the response to GET /v1/pages/{idx}/grids. In /v1/pages/{idx}/grids, idx is the numeric page ID.

Example: ``

Body

application/json
{
  "target": "example",
  "title": "example",
  "with_data": false
}

Name

Description

target

Type: string

Address (slug) of the page to copy the table to. If the page does not exist, it is created.

Example: example

title

Type: string

If provided, the title after cloning

Min length: 1

Max length: 255

Example: example

with_data

Type: boolean

Copy the table along with its row data.

Default: false

Responses

200 OK

OK

Body

application/json
{
  "operation": {
    "type": "clone",
    "id": "example"
  },
  "dry_run": false,
  "status_url": "example"
}

Name

Description

operation

All of 1 type

Asynchronous operation type and ID.

Example
{
  "type": "clone",
  "id": "example"
}

status_url

Type: string

URL for retrieving operation progress information

Example: example

dry_run

Type: boolean

Indicates that execution conditions are checked without starting the operation.

Default: false

B2BOperationType

An enumeration.

Type: string

Enum: clone, clone_inline_grid

B2BOperationIdentity

Name

Description

id

Type: string

Asynchronous operation ID. Use this value as task_id when requesting the operation status.

Example: example

type

All of 1 type
  • B2BOperationType

    Type: B2BOperationType

    An enumeration.

    Enum: clone, clone_inline_grid

The asynchronous operation type.

Example: clone

Example
{
  "type": "clone",
  "id": "example"
}