# Give a workspace the starter templates

Creates the starter shelf for one channel — one template per category, each claiming its category's default slot only if that slot is empty. `?channel=email|sms` is required. Idempotent: running it twice creates nothing the second time. For a workspace whose template list is empty and needs somewhere to start; to write your own instead, `post_message-templates`.

Access class: `workspace`.

## Endpoint

`POST /v1/message-templates/seed-defaults`

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {},
  "query": {
    "channel": "string"
  }
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "created": [
      {
        "bodyFormat": "string",
        "bodyTemplate": "string",
        "category": "string",
        "channel": "string",
        "closingTemplate": "string",
        "createdAt": "string",
        "createdByUserId": "",
        "detail": "string",
        "documentType": "string",
        "entityKind": "string",
        "greetingTemplate": "string",
        "id": "",
        "isActive": "string",
        "isDefault": "string",
        "name": "string",
        "subjectTemplate": "string",
        "updatedAt": "string"
      }
    ],
    "requested": 1,
    "skipped": 1
  }
}
```

### 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"
}
```
