Restore Businesses, Lists, Files and chats
POST
Restore up to 100 archived Businesses (biz_), Lists (list_), Files (fil_) and chats (chat_id) in one call. Idempotent; each id gets its own result.
header
AuthorizationBearer <token>A signed-in SMB user's access token. Workspace-scoped operations also require SMB-Workspace-Id.
SMB-Workspace-Id*stringWorkspace where this operation runs. Required for user tokens and Workspace API keys.
Format
uuidIdempotency-Key*stringLength
8 <= length <= 200application/json- body
ids*array<|>biz_, list_ or fil_ ids, or a chat's id (chat_id). Pass {id, expected_version} to skip an item that changed since that version.
Items
1 <= items <= 100Successful authorized response.
application/json- response
results*array<>request_id*stringcurl -X POST 'https://example.com/v1/restore' \ -H 'SMB-Workspace-Id: 497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Idempotency-Key: stringst' \ -H 'Content-Type: application/json' \ -d '{ "ids": [ "string" ]}'{ "results": [ { "id": "string", "kind": "business", "status": "active", "version": 1, "result": "archived", "deleted_at": "2019-08-24T14:15:22Z", "undo_until": "2019-08-24T14:15:22Z", "error": { "code": "not_found", "message": "string" } } ], "request_id": "string"}