# Change one part of the project's content

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

Change one part of the project's content: a single part's fields, or a collection's whole list of items. The values are checked against the content model, the content file is written and a checkpoint is saved; no model is asked and nothing else in the project changes.

- Scope: hosting:write
- Sdk: hosting.coderContent.update
- Cli: hosting coder content update

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "value": {
      "description": "A single part: its fields by name. A collection: the whole list of items, in order"
    }
  },
  "additionalProperties": false
}
```

## 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 PUT 'https://api.rivier.ai/hosting/coder/projects/{id}/content/{key}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "value": null
}'
```
