Get Service Type
This endpoint retrieves the details of a specific service type. The organizationId
is obtained from the authentication token and does not need to be sent in the request.
Request Example
curl -X GET "https://openapi.onlive.site/api/v1/service-types/{serviceTypeId}" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
Response Example
HTTP Status 200
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Test Drive",
"slug": "test-drive",
"description": "A test drive service",
"organizationId": "org-789",
"createdAt": "2024-03-14T12:00:00Z",
"updatedAt": "2024-03-14T12:00:00Z"
}
Get Service Type List
This endpoint returns a list of service types.
Request Example
curl -X GET "https://openapi.onlive.site/api/v1/service-types" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
Response Example
[
{ ServiceType object },
{ ServiceType object },
{ ServiceType object },
...
]
Other HTTP Status Codes
- 400 Bad Request: Invalid service type ID format.
- 403 Forbidden: User does not have permission to access this service type.
- 404 Not Found: Service type ID does not exist.