# Declare the child pages a page accepts

Replace the whole ordered list of child pages this page will hold subrecords of. Admin only, because it is the shape of a shared surface. A page that stops being accepted takes its existing LINKS with it and never the child records; renaming a section re-titles the links already drawn in it.

Access class: `def:admin`.

## Endpoint

`PUT /v1/definitions/{key}/child-pages`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "pages": [
      {
        "key": "string",
        "kind": "string",
        "position": 1
      }
    ]
  },
  "params": {
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    "string"
  ]
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
