cURL
curl --request PATCH \ --url https://api.usecobalt.com/v1/locations/{id} \ --header 'Content-Type: application/json' \ --header 'access_token: <api-key>' \ --header 'client_id: <api-key>' \ --header 'client_secret: <api-key>' \ --data ' { "status": "active" } '
{ "success": true, "message": "<string>", "location_id": "<string>" }
Updates the status of a location to active or inactive.
curl -X PATCH https://api.usecobalt.com/v1/locations/abc123def4567890abcdef1234567890 \ -H 'Content-Type: application/json' \ -H 'client_id: ci_live_198908HJDKJSH98789OHKJL' \ -H 'client_secret: cs_live_9827hofdsklOYYHJLJh' \ -H 'access_token: 493JKLHIU98789hLKH9HHJH' \ -d '{ "status": "inactive" }'
{ "success": true, "message": "Location status updated successfully.", "location_id": "abc123def4567890abcdef1234567890" }
status
The location's ID
active
inactive
Successful response