Service Groups

Search Service Groups

Method: GET

URL: https://zstatus.io/api/v0/service-groups

Params

KeyDescriptionRequired

Example

const serviceGroups = await api.getServiceGroups({
})

Example Response

{
"edges": [
{
"node": {
"id": "cl4wyedzy010609ladl92r18m",
"name": "Notification Delivery",
"pageId": "cl4ww9v04016509mjisnijiwe",
"createdAt": "2022-06-27T16:27:51.262Z",
"updatedAt": "2022-06-27T16:27:51.262Z"
},
"cursor": "cl4wyedzy010609ladl92r18m"
}
],
"nodes": [
{
"id": "cl4wyedzy010609ladl92r18m",
"name": "Notification Delivery",
"pageId": "cl4ww9v04016509mjisnijiwe",
"createdAt": "2022-06-27T16:27:51.262Z",
"updatedAt": "2022-06-27T16:27:51.262Z"
}
],
"pageInfo": {
"hasNextPage": false,
"hasPreviousPage": false,
"startCursor": "cl4wyedzy010609ladl92r18m",
"endCursor": "cl4wyedzy010609ladl92r18m"
},
"totalCount": 1
}

API Types

export interface CreateServiceGroupProps {
pageId: string;
name: string;
}
export interface UpdateServiceGroupProps {
id: string;
name?: string;
}
export interface APIServiceGroup extends CreateServiceGroupProps {
id: string;
page?: APIPage;
createdAt: string;
updatedAt: string;
}
export interface APIServiceGroupSearchArgs {
pageId?: string;
serviceId?: string;
}