Move a record to a different status. The status title must match a status in your system exactly.
POSThttps://secure-api.setshape.com/api/change/lead/status/{crmid}
Replace
{crmid} with your CRM ID, the Shape system ID that belongs to your API key. Send the standard headers on every request: Authorization: YOUR_API_AUTHORIZATION_KEY and Content-Type: application/json. See Authentication.Body parameters
| Field | Requirement | Description |
|---|---|---|
lead_id |
Required | Shape record ID. |
status |
Required | The exact status title, as returned by Get Statuses. An unknown title returns 404; it isn’t created here. |
Example request
curl --request POST
--url "https://secure-api.setshape.com/api/change/lead/status/YOUR_CRM_ID"
--header "Authorization: YOUR_API_AUTHORIZATION_KEY"
--header "Content-Type: application/json"
--data '{
"lead_id": 281944,
"status": "Application Received"
}'
{
"lead_id": 281944,
"status": "Application Received"
}
Status codes
| Status | Meaning |
|---|---|
| 400 Bad Request | The system or record can’t be updated. |
| 404 Not Found | The record, a required parameter, or the named status was not found. |
| 429 Too Many Requests | A rate limit was reached. See Rate Limits. |
| 500 Server Error | The update failed unexpectedly. |