Update a Subscription
PUT/api/subscriptions/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | id | ID for update data. |
curl -X PUT "https://yoursite.com/api/subscriptions/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "field": "value" }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Data Update Successful."
} Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Data Not Acceptable OR Not Provided"
}
{
"status": false,
"message": "Data Update Fail."
}