People

Update a person

PATCH
/organizations/{organizationId}/people/{personId}

Updates a person's name, email, type or start date. Changing the email stops their current link working.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string
personId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/organizations/string/people/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "organizationId": "string",  "name": "string",  "email": "string",  "employmentType": "employee",  "status": "active",  "startDate": "string",  "endDate": "string",  "offboardedAt": null,  "offboarding": {    "accessRemovedOn": "string",    "evidenceUrl": "string",    "notRequiredReason": "string",    "recordedByUserId": "string",    "recordedAt": null  },  "lastEmailedAt": null,  "lastEmailFailedAt": null,  "lastEmailFailure": "not_allowed",  "policyCounts": {    "owed": -9007199254740991,    "acknowledged": -9007199254740991,    "overdue": -9007199254740991  },  "groupIds": [    "string"  ],  "dateCreated": null,  "dateUpdated": null}