Create Reason

Create Reason.

 

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

 

Request Body Parameter
Attribute Type Required Description
text string Yes

Example Request & Response


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

 

201 Created

{
    "text": "Too expensive"
}

 

400 Bad Request

{
    "text": [
        "This field is required."
    ]
}