# Update the primary contact `PATCH /api/v1/company-profile/primary-contact` Renames the existing primary contact for the workspace. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Settings → Write**. ## Body parameters - `firstname` (string) — Primary contact's given name, up to 15 characters. - `surname` (string) — Primary contact's surname, up to 15 characters. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PATCH \ --url "https://api.asdincloud.com/api/v1/company-profile/primary-contact" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"firstname":"Alex","surname":"Example"}' ``` ## Response **200 OK** Returns the updated company profile and its primary contact in `data`. Example with fictional data and selected fields. ```json { "status": "success", "data": { "company": { "name": "Example Sports Club", "slug": "example-club", "company_email": "office@example.com" }, "primary_contact": { "id": 8, "firstname": "Alex", "surname": "Example", "email": "alex@example.com" } } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — A field is unknown or invalid. - `404` — The requested record was not found. - `422` — The workspace has no primary contact. - `500` — The change could not be saved.