Skip to main content
curl --request PUT \
  --url [https://api.agents.timepay.ai/api/v1/customer-data/bulk](https://api.agents.timepay.ai/api/v1/customer-data/bulk) \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "campaignId": "camp_abc123",
  "records": [
    {
      "id": "loan_12345",
      "data": {
        "payment_status": "paid",
        "emi_amount": 5000
      }
    },
    {
      "id": "loan_67890",
      "data": {
        "payment_status": "partial",
        "emi_amount": 3000
      }
    }
  ]
}'

{
  "success": true,
  "message": "Updated 2 of 2 records",
  "results": {
    "total": 2,
    "valid": 2,
    "invalid": 0,
    "successful": 2,
    "failed": 0,
    "retried": 0,
    "batchesProcessed": 1,
    "errors": []
  }
}

Headers

Authorization
string
required
Bearer token for authentication (e.g., Bearer <your_token>).

Body Parameters

campaignId
string
required
The unique identifier of the campaign (e.g., camp_abc123).
records
array
required
Array of record objects to update (Max 10,000 items).

Response

success
boolean
Indicates if the overall operation was successful.
message
string
A summary message (e.g., “Updated 500 of 500 records”).
results
object
Detailed execution statistics.
curl --request PUT \
  --url [https://api.agents.timepay.ai/api/v1/customer-data/bulk](https://api.agents.timepay.ai/api/v1/customer-data/bulk) \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "campaignId": "camp_abc123",
  "records": [
    {
      "id": "loan_12345",
      "data": {
        "payment_status": "paid",
        "emi_amount": 5000
      }
    },
    {
      "id": "loan_67890",
      "data": {
        "payment_status": "partial",
        "emi_amount": 3000
      }
    }
  ]
}'

{
  "success": true,
  "message": "Updated 2 of 2 records",
  "results": {
    "total": 2,
    "valid": 2,
    "invalid": 0,
    "successful": 2,
    "failed": 0,
    "retried": 0,
    "batchesProcessed": 1,
    "errors": []
  }
}