# Apply a workspace template

## `POST /v1/templates/{name}/apply`

Requires the `schema:write` scope.

```json
{
  "tags": [
    "Schema"
  ],
  "operationId": "apply-template",
  "summary": "Apply a workspace template",
  "description": "Requires the `schema:write` scope.",
  "x-retainer-scope": "schema:write",
  "parameters": [
    {
      "in": "path",
      "name": "name",
      "required": true,
      "description": "Template API name.",
      "example": "starter",
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful response.",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/SchemaChangeResult"
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "default": {
      "$ref": "#/components/responses/ApiError"
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
