Skip to content

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

MethodUrl
GET/v1.0/scope_change/consultations

Request Parameters

filter
string

The filter string. See the Filtering section for details on member filtering. Additionally, Check the filtering documentation for more information.

page_size
number

The page size for search result pagination. If not provided, the service will default to 50 items.

page_token
string

The page to fetch. This would be the next_page_token value returned from the previous request if any.

Sample Request

Copied
1curl 'https://api.worklayer.com/v1.0/scope_change/consultations' \
2 -H 'Authorization: Bearer {token}'

Response

data
list

The consultation service items belonging to that workspace.

next_page_token
string

The pagination token to retrieve the next page of results. If the value is "", it means no further results for the request.

Sample Response

Copied
1{
2 "data": [
3 {
4 "id": "ea7dd97b-a485-41b5-9cca-a607915b2f80",
5 "name": "Consultation (1 Hour)",
6 "description": "Consultation (1 Hour)",
7 "length_in_minutes": 60
8 },
9 {
10 "id": "3bcc8382-cdd5-4895-8ce2-b271955454c6",
11 "name": "Consultation (15 Minutes)",
12 "description": "Consultation (15 Minutes)",
13 "length_in_minutes": 15
14 },
15 {
16 "id": "b1b66b75-c23e-4fc4-b24b-924f25dfd2d0",
17 "name": "Consultation (30 Minutes)",
18 "description": "Consultation (30 Minutes)",
19 "length_in_minutes": 30
20 }
21 ],
22 "next_page_token": "YjFiNjZiNzUtYzIzZS00ZmM0LWIyNGItOTI0ZjI1ZGZkMmQwLDIwMjQtMDUtMDlUMTUlM2EzOCUzYTMxLjMxODk4MjAlMmIwMCUzYTAw"
23}

Consultation Service Item

id
guid

The unique identifier of the consultation item.

name
string

The name of the consultation item.

description
string

The description of the consultation item.

length_in_minutes
numeric

The duration of the service in minutes.

Filtering

The following fields are supported:

FieldComparatorDescriptionExample
id=The consultation item ID.id="22b1b66b75-c23e-4fc4-b24b-924f25dfd2d0"
length=The consultation duration in minutes.length=30

Sample Request with Filters

Copied
1curl 'https://api.worklayer.com/v1.0/scope_change/consultations?filter="id=22b1b66b75-c23e-4fc4-b24b-924f25dfd2d0"' -H
2'Authorization: Bearer {token}'
Last updated on December 9, 2024