Skip to main content

Hi,

https://developer.pagerduty.com/api-reference/f3bfe4c8d1de2-list-the-supporting-business-services-for-the-given-business-service-id-sorted-by-impacted-status

gives us a list of business services and their supporting services.

How can we set supporting services for a business service via the API?


This endpoint: https://developer.pagerduty.com/api-reference/3fb4a13b59634-associate-service-dependencies seems to only work for technical services, not for business services

Thanks!

Hi @fabian haupt


The relationship is built the same way, except for the supporting_service you’ll change the type to business_service. Business services have the same sort of object IDs as other services, so the id field looks the same with either type.


data = {
"relationships": :
{
"supporting_service": {
"id": supporting_service,
"type": "business_service"
},
"dependent_service": {
"id": dependent_service,
"type": "business_service"
}
}
]}

That will allow you to link business services together.

20%20PM


HTH,

–mandi


Reply