Add New Project
POST/api/projects
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | string | Mandatory Project Title. |
| client_id | string | Mandatory Project client id. |
| start_date | string | Mandatory Project Start Date. |
| description | string | Optional Project description. |
| deadline | string | Optional Project deadline. |
| created_by | number | optional Optional RISE user ID. Default: 1. Use for proper attribution. |
curl -X POST "https://yoursite.com/api/projects" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "...", "client_id": "...", "start_date": "...", "description": "...", "deadline": "..." }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Project add successful."
}
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Project add fail."
}