ReferenceAPI Reference
REST-Style API
REST-Style API
For traditional REST clients, ObjectQL can expose a REST-style interface.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/data/:object | List records |
GET | /api/data/:object/:id | Get single record |
POST | /api/data/:object | Create record (or create many if body is an array) |
POST | /api/data/:object/bulk-update | Update many records |
POST | /api/data/:object/bulk-delete | Delete many records |
PUT | /api/data/:object/:id | Update record |
DELETE | /api/data/:object/:id | Delete record |
List Records
Response:
Get Single Record
Response:
Create Record
Response:
Update Record
Response:
Delete Record
Response:
Bulk Operations (REST)
Create Many Records
Send an array in the POST body to create multiple records at once.
Response:
Update Many Records
Update all records matching the provided filters.
Response:
Delete Many Records
Delete all records matching the provided filters.
Response: