Update reason

You can fetch a single reason

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization
id number Yes The unique identifier of the reason

 

Request Body Parameter
Attribute Type Required Description
text string Yes

Example Request & Response


$ curl https://api.custerem.com/<org_id>/resaons/<id>/ \
-X PUT \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "text": "Too expensive"
}'

 

204 No Content

{
    "text": "Too expensive"
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Reason with id 8 not found"
}