# Update a recipient

`PATCH /v1/orgs/{orgId}/counterparties/{counterpartyId}`

Change a recipient's name, email or category. Categories are filters only.

Requires: permission counterparties:manage

## Request body

- `name` (string): 
- `email` (string): 
- `category` (enum):  One of vendor, customer, contractor, employee, other.

```json
{
  "name": "Acme Robotics",
  "email": "ada@acme-robotics.example",
  "category": "vendor"
}
```

Errors: invalid_category

```bash
curl -X PATCH "https://sandbox-api.payezy.io/v1/orgs/$ORG_ID/counterparties/$COUNTERPARTY_ID" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Acme Robotics",
  "email": "ada@acme-robotics.example",
  "category": "vendor"
}'
```
