mosoodocs
简体中文API Reference

归档 Thread

归档该 Thread,使其从默认 Thread 列表中隐藏。

POST/threads/{threadId}/archive

归档该 Thread,使其从默认 Thread 列表中隐藏。

Authorization

publicApiBearer
AuthorizationBearer <token>

使用 Authorization: Bearer mst_...。API token 用于识别账号,不携带 scope。

In: header

Path Parameters

threadId*string

create thread 返回的 Thread ID。v1 ID 是不带前缀的 ULID。

Match^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
Formatulid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/threads/01J00000000000000000000009/archive"
{  "ok": true}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}