# Change how customers sign in to a site

`PUT /customer-accounts/settings` · Rivier · contacts

Change how customers sign in to a site. A person's decision; an agent is refused.

- Scope: contacts:admin
- Graphql: Mutation.contactsCustomerSettingsUpdate
- Sdk: contacts.customerSettings.update
- Cli: contacts customer settings update

## Parameters

- `project` (query), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "signUp": {
      "type": "string",
      "enum": [
        "open",
        "existing_only"
      ]
    },
    "passkeys": {
      "type": "boolean"
    },
    "sessionDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 90
    },
    "absoluteDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "passwords": {
      "type": "boolean"
    }
  },
  "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/customer-accounts/settings' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "signUp": "open",
  "passkeys": false,
  "sessionDays": 0,
  "absoluteDays": 0,
  "passwords": false
}'
```
