curl --request PATCH \
--url http://localhost:3333/v1/people/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"userId": "usr_abc123def456",
"role": "admin",
"department": "it",
"isActive": false,
"fleetDmLabelId": 123,
"name": "John Doe",
"email": "john@example.com",
"createdAt": "2024-01-15T00:00:00.000Z"
}
'{
"id": "mem_abc123def456",
"organizationId": "org_abc123def456",
"userId": "usr_abc123def456",
"role": "member",
"createdAt": "2024-01-01T00:00:00Z",
"department": "it",
"isActive": true,
"fleetDmLabelId": 123,
"user": {
"id": "usr_abc123def456",
"name": "John Doe",
"email": "john.doe@company.com",
"emailVerified": true,
"image": "https://example.com/avatar.jpg",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T00:00:00Z",
"lastLogin": "2024-01-15T12:00:00Z"
}
}Partially updates a member. Only provided fields will be updated. Supports both API key authentication (X-API-Key header) and session authentication (Bearer token or cookies).
curl --request PATCH \
--url http://localhost:3333/v1/people/{id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"userId": "usr_abc123def456",
"role": "admin",
"department": "it",
"isActive": false,
"fleetDmLabelId": 123,
"name": "John Doe",
"email": "john@example.com",
"createdAt": "2024-01-15T00:00:00.000Z"
}
'{
"id": "mem_abc123def456",
"organizationId": "org_abc123def456",
"userId": "usr_abc123def456",
"role": "member",
"createdAt": "2024-01-01T00:00:00Z",
"department": "it",
"isActive": true,
"fleetDmLabelId": 123,
"user": {
"id": "usr_abc123def456",
"name": "John Doe",
"email": "john.doe@company.com",
"emailVerified": true,
"image": "https://example.com/avatar.jpg",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T00:00:00Z",
"lastLogin": "2024-01-15T12:00:00Z"
}
}API key for authentication
Member ID
"mem_abc123def456"
Member update data
User ID to associate with this member
"usr_abc123def456"
Role for the member
"admin"
Member department
none, admin, gov, hr, it, itsm, qms "it"
Whether to deactivate this member (soft delete)
false
FleetDM label ID for member devices
123
Name of the associated user
"John Doe"
Email of the associated user
"john@example.com"
Member join date (createdAt override)
"2024-01-15T00:00:00.000Z"
Member updated successfully
Member ID
"mem_abc123def456"
Organization ID this member belongs to
"org_abc123def456"
User ID associated with member
"usr_abc123def456"
Member role
"admin"
When the member was created
"2024-01-01T00:00:00Z"
Member department
none, admin, gov, hr, it, itsm, qms "it"
Whether member is active
true
FleetDM label ID for member devices
123
User information
Show child attributes
Was this page helpful?