Faults
curl --request GET \
--url https://api.sortx.co.uk/p/:tenant/repair-faultsconst options = {method: 'GET'};
fetch('https://api.sortx.co.uk/p/:tenant/repair-faults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/p/:tenant/repair-faults"
response = requests.get(url)
print(response.text)[
{
"id": "<string>",
"parentId": "<string>",
"label": "<string>",
"description": "<string>",
"category": "<string>",
"subcategory": "<string>",
"fault": "<string>",
"trade": "<string>",
"urgency": "routine",
"source": "<string>",
"icon": "<string>",
"searchTerms": [
"<string>"
],
"selectable": true,
"popup": {
"id": "<string>",
"heading": "<string>",
"html": "<string>"
},
"questionGroups": [
{
"id": "<string>",
"ref": "<string>",
"title": "<string>",
"description": "<string>",
"questions": [
{
"id": "<string>",
"title": "<string>",
"label": "<string>",
"fieldType": "text",
"placeholder": "<string>",
"required": true,
"options": [
"<string>"
],
"minValue": 123,
"minLength": 123
}
]
}
],
"disabled": true
}
]{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}maintenance-pro-public
Faults
List public guided repair faults
GET
/
p
/
:tenant
/
repair-faults
Faults
curl --request GET \
--url https://api.sortx.co.uk/p/:tenant/repair-faultsconst options = {method: 'GET'};
fetch('https://api.sortx.co.uk/p/:tenant/repair-faults', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sortx.co.uk/p/:tenant/repair-faults"
response = requests.get(url)
print(response.text)[
{
"id": "<string>",
"parentId": "<string>",
"label": "<string>",
"description": "<string>",
"category": "<string>",
"subcategory": "<string>",
"fault": "<string>",
"trade": "<string>",
"urgency": "routine",
"source": "<string>",
"icon": "<string>",
"searchTerms": [
"<string>"
],
"selectable": true,
"popup": {
"id": "<string>",
"heading": "<string>",
"html": "<string>"
},
"questionGroups": [
{
"id": "<string>",
"ref": "<string>",
"title": "<string>",
"description": "<string>",
"questions": [
{
"id": "<string>",
"title": "<string>",
"label": "<string>",
"fieldType": "text",
"placeholder": "<string>",
"required": true,
"options": [
"<string>"
],
"minValue": 123,
"minLength": 123
}
]
}
],
"disabled": true
}
]{
"_tag": "TenantCreateRejected",
"reason": "<string>",
"field": "<string>"
}{
"_tag": "Unauthenticated"
}{
"_tag": "TenantSuspended",
"tenantId": "<string>",
"reason": "<string>"
}{
"_tag": "EntitlementMissing",
"tenantId": "<string>",
"moduleId": "<string>"
}{
"_tag": "TenantNotFound",
"slug": "<string>"
}{
"_tag": "WebhookDuplicate",
"integration": "<string>",
"externalId": "<string>"
}{
"_tag": "RateLimited",
"key": "<string>",
"retryAfterSeconds": 123,
"message": "<string>"
}{
"_tag": "IntegrationUnavailable",
"integration": "<string>",
"detail": "<string>"
}Response
Success
Available options:
routine, urgent, emergency Show child attributes
Show child attributes
Show child attributes
Show child attributes