Service Types: Retrieving Service Types, Service Type Groups, and Projects by Service Type via the API

In this article, you can read about retrieving service types, retrieving service type groups, and retrieving projects filtered by a specific service type value via the API.

Service Type

A service type is a parameter that can be connected to a company or to a specific project. Each service type belongs to a service type group, so you can retrieve service types either by their group or by their individual IDs.

Retrieving Service Types

GET

https://api.recman.io/v2/get/index.php?key={{api_key}}&scope=
serviceType&serviceTypeGroupId=60&serviceTypeIds=423

Use serviceTypeGroupId to retrieve all service types belonging to a specific service type group, or use serviceTypeIds to retrieve information about one or more specific service types.

FieldTypeRequiredDescription
keystringRequiredYour API key
scopestringRequiredMust be set to serviceType
serviceTypeGroupIdintegerOptionalSearch criteria. Filters service types belonging to the given service type group
serviceTypeIdsintegerOptionalExtra parameter. Filters results to the given service type ID(s)

Each returned service type includes the following fields:

FieldTypeDescription
serviceTypeIdintegerThe ID of the service type
namestringThe name of the service type
serviceTypeGroupIdintegerThe ID of the service type group this service type belongs to
occupationIdintegerThe ID of the related occupation, if any
createddate-timeCreation date, format "Y-m-d H:i:s"
createUserIdintegerThe ID of the user who created the service type

Retrieving Service Type Groups

GET

https://api.recman.io/v2/get/index.php?key={{api_key}}&scope=
serviceTypeGroup

Retrieves a list of all available service type groups.

FieldTypeRequiredDescription
keystringRequiredYour API key
scopestringRequiredMust be set to serviceTypeGroup

Each returned service type group includes the following fields:

FieldTypeDescription
serviceTypeGroupIdintegerThe ID of the service type group
namestringThe name of the service type group
numberintegerSort order/sequence number of the group
createddate-timeCreation date, format "Y-m-d H:i:s"
createUserIdintegerThe ID of the user who created the service type group

Retrieving Projects with Service Type Value

GET

https://api.recman.io/v2/get/index.php?scope=project&key=
{{api_key}}&page=1&fields=name,serviceTypeId&serviceTypeId=413

You can search for projects with a specific service type by adding the optional query parameter
serviceTypeId to a standard project retrieval request.

FieldTypeRequiredDescription
scopestringRequiredMust be set to project
keystringRequiredYour API key
pageintegerRequiredPage number
fieldsstringRequiredComma-separated list of fields to return, e.g.
name,serviceTypeId
serviceTypeIdintegerOptionalFilters projects to only those with the given service type ID

Note

This uses the same project scope covered in the Projects article; service type filtering is just an additional query parameter on that endpoint.

Was this article helpful?
0 out of 0 found this helpful