Update a Note
PUT/api/notes/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| description | String | New note text. |
curl -X PUT "https://yoursite.com/api/notes/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "description": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Note updated successfully"
} Validation-Error:
HTTP/1.1 422 Unprocessable Entity
{
"status": false,
"error": "validation_failed",
"message": "Note validation failed",
"errors": {
"description": "The description field is required."
}
}