Update a Project
PUT/api/projects/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Project unique ID |
| title | string | Mandatory Project Title |
| client_id | string | Mandatory Project client id |
| start_date | string | Mandatory Project Start Date |
| description | string | Optional Project description |
curl -X PUT "https://yoursite.com/api/projects/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "...", "client_id": "...", "start_date": "...", "description": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Project Update Successful."
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Project Update Fail."
}