Items
Manage items. Ability to create, edit, view, and delete items.
Available Endpoints
| Method |
Path |
Description |
| GET |
/api/items |
List items |
| GET |
/api/items/{id} |
View item details |
| POST |
/api/items |
Create new item |
| PUT |
/api/items/{id} |
Full update of an item |
| PATCH |
/api/items/{id} |
Partial update of an item |
| DELETE |
/api/items/{id} |
Delete an item |
Example Request
curl -X GET "https://example.com/api/items" \
-H "Authorization: Bearer {token}"
Success Response (200)
{
"records": [],
"meta": {
"total": 0,
"current_page": 1,
"per_page": 20
}
}
Errors
| Code |
Description |
| 401 |
Invalid token |
| 403 |
Access denied |
| 404 |
Record not found |
| 422 |
Validation error |