Bulk update contact status
Sets the status on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids.
POST
Sets the status on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids.
apiKeyheader
x-api-key<token>application/json- body
ids*array<>Items
1 <= items <= 1000status*stringValue in
"active""paused""blocked""archived"BulkUpdateResult
application/json- response
updated*integerRange
0 <= value <= 9007199254740991failed*integerRange
0 <= value <= 9007199254740991import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.contacts.bulkUpdateStatus({ "ids": [ "example" ], "status": "active"});Example Response
{ "updated": 0, "failed": 0}Related documentation
Bulk delete contacts
Permanently deletes multiple contacts by ID, returning counts of deleted and failed records. One request carries at most 1000 ids.
Bulk update contact tags
Adds, removes, or replaces tags on multiple contacts in one request, returning counts of updated and failed records. One request carries at most 1000 ids.