Add New Item
POST/api/items
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| category_id | Number | Mandatory Item category ID |
| title | String | optional Optional Item title |
| description | String | optional Optional Item description |
| unit_type | String | optional Optional Unit type |
| rate | Number | optional Optional Item rate |
| show_in_client_portal | Number | optional Optional Show in client portal (1 or 0) |
| created_by | Number | optional Optional RISE user ID. Default: 1. Use for proper attribution. |
curl -X POST "https://yoursite.com/api/items" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "category_id": "..." }' Success-Response:
HTTP/1.1 201 Created
{ "status": 200, "messages": {"success": "Record saved"}, "id": 1 }