Rename a contact
PATCHhttps://app.notert.io/api/v1/people/{id}
Renames a contact as the token's holder, as their page in the app does, keeping their address: a new address redirects what is sent to them, which only the team's page changes. Sending the same name again changes nothing. A teammate names themself in Notert, so only a contact's c_ id is taken.
A token with people:write. How to send one
Request
curl -X PATCH https://app.notert.io/api/v1/people/c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70 \
-H "Authorization: Bearer $NOTERT_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Ingrid Larsen"
}'Response 200
{
"id": "c_a4c6e8f0-2b1d-4f3a-9c5e-7d9b1f3a5c70",
"name": "Hannah Lee"
}Path parameters
idstringRequiredThe person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it.
Body
namestringRequiredTheir name as the team should know them, up to 80 characters.
At least 1 character. At most 80 characters.
Response 200
idstringThe person's id: m_ and a member's user id, or c_ and a contact's id, as the people list answers it.
namestringTheir name, as they or the team wrote it. Null for one who gave none. Their email address is never answered.
Errors
- 400
BAD_REQUESTInput validation failed. - 401
UNAUTHORIZEDSend a valid API token as a Bearer token. - 403
HOLDER_NOT_ALLOWEDThe teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. - 403
INSUFFICIENT_SCOPEThis API token can't change your customers' traits or invite teammates. Create one that may in the workspace's settings. - 403
NETWORK_NOT_ALLOWEDThis API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. - 403
NO_SEATThis workspace's plan has no seat for you. - 403
WORKSPACE_SUSPENDEDThis workspace is suspended. - 404
NOT_FOUNDNot Found. - 409
CHANGED_MEANWHILESomething changed meanwhile. Try again. - 429
TOO_MANY_REQUESTSToo Many Requests. Its data holdsretryAfter.
A refusal names its code beside a message. Rate limits says when to try again.