# Update a Calendar Event

`PUT /api/calendar/{id}`



- **Group:** Calendar Events
- **Since:** v0.0.0
- **Authentication:** `authtoken` header, created under Setup > API > API Management
- **HTML version:** /apiguide/calendar-events/update-calendar-event/

## Headers

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

## Parameters

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

## Example request

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

## 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 Update Fail"
}
```

---

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