# Record where a registration stands, with the details the owner entered

`PUT /phone/registrations` · Rivier · voice

Record where a registration stands, with the details the owner entered.

- Scope: voice:write
- Graphql: Mutation.voicePhoneRegistrationSet
- Sdk: voice.phoneRegistration.set
- Cli: voice phone registration set

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "minLength": 2,
      "maxLength": 2
    },
    "kind": {
      "type": "string",
      "enum": [
        "sender_id",
        "a2p_10dlc",
        "toll_free",
        "dlt",
        "whatsapp_business"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "not_started",
        "owner_input_needed",
        "submitted",
        "approved",
        "rejected"
      ]
    },
    "details": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 500
      }
    },
    "note": {
      "type": "string",
      "maxLength": 500
    }
  },
  "required": [
    "country",
    "kind",
    "state"
  ],
  "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/phone/registrations' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "country": "string",
  "kind": "sender_id",
  "state": "not_started"
}'
```
