# Contacts platform customer put

`POST /platform-customers` · Rivier · contacts

A customer known once to the platform, under its own id for them (ref), with an address and a number: made once, then updated with what is given.

- Scope: contacts:write
- Graphql: Mutation.contactsPlatformCustomerPut
- Sdk: contacts.platformCustomer.put
- Cli: contacts platform customer put

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The platform's own id for the person"
    },
    "email": {
      "anyOf": [
        {
          "type": "string",
          "format": "email",
          "maxLength": 320
        },
        {
          "type": "null"
        }
      ]
    },
    "phone": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\+\\d{6,15}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "ref"
  ],
  "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 POST 'https://api.rivier.ai/platform-customers' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ref": "string"
}'
```
