Back to Collection Items
<?php
$json->UpdateString('data[0].Carrier','BlueDart');$json->UpdateBool('over_write',1);$json->UpdateString('ids[0]','{{record_id1}}');$json->UpdateString('ids[1]','{{record_id2}}');$json->UpdateString('ids[2]','{{record_id3}}');$http->AuthToken = '<access_token>';
?>
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-d '{
"data": [
{
"Carrier": "BlueDart"
}
],
"over_write": true,
"ids": [
"{{record_id1}}",
"{{record_id2}}",
"{{record_id3}}"
]
}'
https://domain.com/crm/v2.1/Purchase_Orders/actions/mass_update
Postman Collection Item JSON
{
"name": "Purchase Orders",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{access-token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"data\": [\n {\n \"Carrier\": \"BlueDart\"\n }\n ],\n \"over_write\": true,\n \"ids\": [\n \"{{record_id1}}\",\n \"{{record_id2}}\",\n \"{{record_id3}}\"\n ]\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{api-domain}}/crm/v2.1/Purchase_Orders/actions/mass_update",
"host": [
"{{api-domain}}"
],
"path": [
"crm",
"v2.1",
"Purchase_Orders",
"actions",
"mass_update"
]
},
"description": "To schedule mass update."
},
"response": [
]
}