GET /api/organizations
200
{
"total": 3,
"subtotal": 3,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"ancestry": null,
"parent_id": null,
"parent_name": null,
"created_at": "2019-02-20 13:25:27 UTC",
"updated_at": "2019-02-20 13:25:27 UTC",
"id": 114267492,
"name": "Empty Organization",
"title": "Empty Organization",
"description": null
},
{
"ancestry": null,
"parent_id": null,
"parent_name": null,
"created_at": "2019-02-20 13:25:27 UTC",
"updated_at": "2019-02-20 13:25:27 UTC",
"id": 447626438,
"name": "Organization 1",
"title": "Organization 1",
"description": null
},
{
"ancestry": null,
"parent_id": null,
"parent_name": null,
"created_at": "2019-02-20 13:25:27 UTC",
"updated_at": "2019-02-20 13:25:27 UTC",
"id": 61304186,
"name": "Organization 2",
"title": "Organization 2",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
paginate results Validations:
|
|
per_page optional |
number of entries per request Validations:
|