product:chat

Import block list items

Changed on

Enqueues an asynchronous bulk import of items into an existing blocklist. Returns a task ID that can be polled via GET /tasks/{id} to observe progress. AddItems is idempotent: items already present are skipped without error. For lists exceeding the HTTP request-body cap, issue repeated import calls each carrying a bounded slice of items — the task result accumulates correctly.

post/blocklists/{id}/import

Request

  • Base URL
    https://chat.stream-io-api.com
  • URL
    https://chat.stream-io-api.com/blocklists/{id}/import
  • Auth
    • API key in header Authorization and API key in query parameter api_key and API key in header Stream-Auth-Type
    • or API key in query parameter api_key and API key in header Stream-Auth-Type

Path parameters

idstring required

Request body

chunk_sizeinteger
itemsstring[] required

Response

Response

durationstring required

Duration of the request in milliseconds

task_idstring required

Changes