List Consultation Service Items
List consultation service items.
The list consultation items endpoint allows you to retrieve a paginated list of consultation services in your workspace.
Endpoint
Method | Url |
---|---|
GET | /v1.0/scope_change/consultations |
Request Parameters
The filter string. See the Filtering section for details on member filtering. Additionally, Check the filtering documentation for more information.
The page size for search result pagination. If not provided, the service will default to 50 items.
The page to fetch. This would be the next_page_token
value returned from the previous request if any.
Sample Request
Copied1curl 'https://api.worklayer.com/v1.0/scope_change/consultations' \2 -H 'Authorization: Bearer {token}'
Response
The consultation service items belonging to that workspace.
The pagination token to retrieve the next page of results. If the value is ""
, it means no further results for the request.
Sample Response
Copied1{2 "data": [3 {4 "id": "ea7dd97b-a485-41b5-9cca-a607915b2f80",5 "name": "Consultation (1 Hour)",6 "description": "Consultation (1 Hour)",7 "length_in_minutes": 608 },9 {10 "id": "3bcc8382-cdd5-4895-8ce2-b271955454c6",11 "name": "Consultation (15 Minutes)",12 "description": "Consultation (15 Minutes)",13 "length_in_minutes": 1514 },15 {16 "id": "b1b66b75-c23e-4fc4-b24b-924f25dfd2d0",17 "name": "Consultation (30 Minutes)",18 "description": "Consultation (30 Minutes)",19 "length_in_minutes": 3020 }21 ],22 "next_page_token": "YjFiNjZiNzUtYzIzZS00ZmM0LWIyNGItOTI0ZjI1ZGZkMmQwLDIwMjQtMDUtMDlUMTUlM2EzOCUzYTMxLjMxODk4MjAlMmIwMCUzYTAw"23}
Consultation Service Item
The unique identifier of the consultation item.
The name of the consultation item.
The description of the consultation item.
The duration of the service in minutes.
Filtering
The following fields are supported:
Field | Comparator | Description | Example |
---|---|---|---|
id | = | The consultation item ID. | id="22b1b66b75-c23e-4fc4-b24b-924f25dfd2d0" |
length | = | The consultation duration in minutes. | length=30 |
Sample Request with Filters
Copied1curl 'https://api.worklayer.com/v1.0/scope_change/consultations?filter="id=22b1b66b75-c23e-4fc4-b24b-924f25dfd2d0"' -H2'Authorization: Bearer {token}'
Next steps