Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Update person

Update a single person (displayName, avatarUrl, description, isVip, primaryEmail, connections). At least one field must be provided; omitted fields are left unchanged and null clears a nullable field.

PATCH/people/{personId}
Authorization
AuthorizationBearer token · headerrequired

Organization API key (modem_…).

Path parameters
personIdstringrequired
matches ^\d+$
Header parameters
Idempotency-Keystring

Replays a successful mutating request for 24 hours. Reuse with a different payload returns 409.

max length 255
Request body
requiredapplication/json
avatarUrlstring<uri> | null
Show properties
Any of:
string<uri>
string<uri>
null
null
connectionsobject
Show properties
githubstring | null
Show properties
Any of:
string
string
null
null
linkedinstring | null
Show properties
Any of:
string
string
null
null
phonestring | null
Show properties
Any of:
string
string
null
null
titlestring | null
Show properties
Any of:
string
string
null
null
twitterstring | null
Show properties
Any of:
string
string
null
null
websitestring | null
Show properties
Any of:
string
string
null
null
descriptionstring | null
Show properties
Any of:
string
string
null
null
displayNamestring
min length 1
isVipboolean
primaryEmailstring<email> | null
Show properties
Any of:
string<email>
string<email>
null
null
Responses
200

OK

avatarUrlstring<uri> | nullrequired

Avatar image URL for the person.

Show properties
Any of:
string<uri>
string<uri>
null
null
connectionsobjectrequired
Show properties
githubstring | nullrequired
Show properties
Any of:
string
string
null
null
linkedinstring | nullrequired
Show properties
Any of:
string
string
null
null
phonestring | nullrequired
Show properties
Any of:
string
string
null
null
titlestring | nullrequired
Show properties
Any of:
string
string
null
null
twitterstring | nullrequired
Show properties
Any of:
string
string
null
null
websitestring | nullrequired
Show properties
Any of:
string
string
null
null
descriptionstring | nullrequired
Show properties
Any of:
string
string
null
null
displayNamestringrequired

Display name for the person.

idstringrequired
matches ^\d+$
isVipbooleanrequired
primaryEmailstring<email> | nullrequired
Show properties
Any of:
string<email>
string<email>
null
null
400

Invalid request (validation failed).

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

401

Missing or invalid API key.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

403

The API key does not have access to this resource.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

404

The requested resource was not found.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

409

The request conflicts with an existing resource or idempotency operation.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

429

Rate limit exceeded.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

500

Internal server error.

codestringrequired

Machine-readable error code, e.g. NOT_FOUND.

dataany

Optional structured error details.

definedbooleanrequired

True if the error was declared in the procedure contract.

messagestringrequired

Human-readable error message.

statusintegerrequired

HTTP status code.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.modem.dev/v1/people/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "avatarUrl": "http://example.com",
  "connections": {
    "github": "string",
    "linkedin": "string",
    "phone": "string",
    "title": "string",
    "twitter": "string",
    "website": "string"
  },
  "description": "string",
  "displayName": "string",
  "isVip": true,
  "primaryEmail": "user@example.com"
}'
Response
{
  "avatarUrl": "http://example.com",
  "connections": {
    "github": "string",
    "linkedin": "string",
    "phone": "string",
    "title": "string",
    "twitter": "string",
    "website": "string"
  },
  "description": "string",
  "displayName": "string",
  "id": "string",
  "isVip": true,
  "primaryEmail": "user@example.com"
}

Was this page helpful?