# Hosting coder content make type

`POST /hosting/coder/projects/{id}/content/{key}/type` · Rivier · hosting

Make the declared type for a part of the content kept in Rivier (store rivier:data in content/schema.json), from the part's own fields, and add the file the site reads it with (src/lib/rivier-content.ts and its snapshot) as a checkpoint. The published site reads the items with a key that can only read content, set in its environment after a release.

- Scope: hosting:write
- Sdk: hosting.coderContent.makeType
- Cli: hosting coder content make type

## Parameters

- `id` (path, required), string
- `key` (path, required), string

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/hosting/coder/projects/{id}/content/{key}/type' \
  -H 'Authorization: Bearer $KEY'
```
