# Update a Subscription

`PUT /api/subscriptions/{id}`



- **Group:** Subscriptions
- **Since:** v0.0.0
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/subscriptions/update-a-subscription/

## Headers

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `authtoken` | String | **required** | Authentication token, generated from admin area |

## Parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | id | **required** | ID for update data. |

## Example request

```bash
curl -X PUT "https://yoursite.com/api/subscriptions/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "field": "value" }'
```

## Success response

### Success-Response:

```json
HTTP/1.1 200 OK
{
  "status": true,
  "message": "Data Update Successful."
}
```

## Error responses

### Error-Response:

```json
    HTTP/1.1 404 Not Found
 {
      "status": false,
      "message": "Data Not Acceptable OR Not Provided"
 }

{
   "status": false,
   "message": "Data Update Fail."
}
```

---

Perfex CRM REST API by Themesic Interactive. Full reference: /apiguide/
