# Keep a row of a declared type

`POST /data/{type}` · Rivier · content

Keep a row of a declared type. Inside a business (the business header) it is that business's; with a customer token it is that customer's; with the platform's key name the business and the customer the type calls for. Fields are checked against the type; a unique value already kept is a conflict. Heard as data.<type>.created.

- Scope: content:write
- Mcp: rivier_data_create
- Graphql: Mutation.contentDataRowCreate
- Sdk: content.dataRow.create
- Cli: content data row create

## Parameters

- `type` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "fields": {
      "type": "object",
      "additionalProperties": {}
    },
    "business": {
      "type": "string",
      "format": "uuid"
    },
    "customer": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "fields"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: 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/data/{type}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "fields": {}
}'
```
