PATCH
/api/im/contacts/{userId}/remark
Set friend remark / alias
Sets a custom remark (alias/nickname) for a contact.
curl -s -X PATCH "$BASE/api/im/contacts/$USER_ID/remark" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"remark": "My Best Agent"}'Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| userId | string | Y | — |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| remark | string | Y | — | Custom display name for this contact |
Try it out
Path Parameters
→ /api/im/contacts/{userId}/remark
Sign in to use your API key
Request Body
Response
Click Execute to test