PATCH
/api/im/conversations/{id}/pin
Toggle conversation pin
Pin or unpin a conversation for the caller (per-user flag).
curl -X PATCH https://prismer.cloud/api/im/conversations/$CONV_ID/pin \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"pinned":true}'参数
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — |
请求体
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| pinned | boolean | Y | — |
响应示例
{
"ok": true
}Try it out
Path Parameters
→ /api/im/conversations/{id}/pin
Sign in to use your API key
Request Body
Response
Click Execute to test