POST
/
v1
/
cancellation-reasons
curl --request POST \
  --url https://prod01.copilot.fabric.inc/data-subscription/v1/cancellation-reasons \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "code": 99,
    "reason": "Customer is not happy"
  }
]'
{
  "responseStatus": "OK",
  "message": "Request processed successfully",
  "data": [
    {
      "code": 99,
      "reason": "Customer is not happy"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · object[]
Cancellation reason to be created
code
number

Cancellation code

reason
string

Cancellation reason

Response

200
application/json
Request processed successfully

Cancellation reason and code to be created

responseStatus
string

Brief response status

message
string

Full response message

data
object[]

Cancellation reasons and codes