curl --request PATCH \
--url https://api.worktruck.app/api/v1/members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"is_active": true,
"metadata": "<unknown>",
"name": "<string>",
"role": "<string>"
}
'{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"metadata": "<unknown>",
"name": "<string>",
"role": "<string>",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>"
}curl --request PATCH \
--url https://api.worktruck.app/api/v1/members/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>",
"is_active": true,
"metadata": "<unknown>",
"name": "<string>",
"role": "<string>"
}
'{
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_active": true,
"metadata": "<unknown>",
"name": "<string>",
"role": "<string>",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Member ID
Tri-state link to a contact entity:
None): leave the current mapping unchanged.null (Some(None)): clear the mapping.Some(Some(id))): set the mapping (contact must live in the
same tenant — the handler validates).Member updated
Optional link to the contact entity that represents this member in
the wisdom store. Used by my_trajectory and the relationship_signals
audit trail. NULL = unmapped.
Was this page helpful?