This endpoint returns the update status for a contact batch upsert request placed using the endpoint Contact Insert and Update (Batch). Use the BatchID received in the response body from the endpoint Contact Insert and Update (Batch) as the input parameter ID to get the latest update status.
id required | string <uuid> The BatchID received in the response body from the endpoint Contact Insert and Update (Batch). |
Success
Bad Request
Unauthorized
Conflict
Client Error
Server Error
import fetch from 'node-fetch'; async function run() { const id = 'YOUR_id_PARAMETER'; const resp = await fetch( `https://apicrm.mainbrainer.com/contacts/${id}/Status`, { method: 'GET', headers: { Authorization: 'YOUR_API_KEY_HERE' } } ); const data = await resp.text(); console.log(data); } run();
{- "id": "string",
- "status": 0,
- "statusText": "string",
- "statusFailedReason": "string",
- "processedObj": {
- "inserted": {
- "count": 0,
- "contactIds": [
- 0
]
}, - "updated": {
- "count": 0,
- "contactIds": [
- 0
]
}, - "skipped": {
- "count": 0,
- "contactIds": [
- 0
]
}
}
}