Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Webhook Issue on Zapier - Custom Request

Dianey Benitez October 15, 2024

I have got the following payload working except for the component.  Affected Components are not being updated. 

 

{
"statuspage_id": "ID",
"incident": {
"name": "Test Incident",
"details": "Incident description from Slack",
"component": [
{
"component_id": "XXX",
"status": 200
},
{
"component_id": "YYY",
"status": 200
},
{
"component_id": "ZZZ",
"status": 200
}
],
"affected_components": [
{
"component_id": "ZZZ",
"status": "partial_outage"
},
{
"component_id": "YYY",
"status": "operational"
},
{
"component_id": "ZZZ",
"status": "degraded_performance"
}
],
"deliver_notifications": true
}
}


Checked on the data out in the zap and "Components" as well as "affected_components" remain unpopulated.

I tried using components instead of component, but I get this error:
Failed to create a request in Webhooks by Zapier

incident[components] is invalid (HTTP Status Code: 400)

Any suggestions is much much appreciated.

1 answer

0 votes
Dianey Benitez October 15, 2024

Update:
revised to the following

{
"statuspage_id": "ID",
"incident": {
"name": "Test Incident",
"details": "Incident description from Slack",
"component_ids": [
"XXX",
"YYY",
"ZZZ"
],
"deliver_notifications": true
}
}


now stuck in setting component status to degraded performance.

Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2024

Hey Dianey, 
Thanks for reaching out to Atlassian Community! 

It looks like you're nearly there with your payload, but you're having trouble updating the status of individual components. Here's a suggestion:

  • Use component_ids to identify the components you want to affect.
  • Use components to specify the status of the components individually.

Try the following structure:

{
"statuspage_id": "ID",
"incident": {
"name": "Test Incident",
"details": "Incident description from Slack",
"component_ids": [
"XXX",
"YYY",
"ZZZ"
],
"components": {
"XXX": "degraded_performance",
"YYY": "operational",
"ZZZ": "partial_outage"
},
"deliver_notifications": true
}
}

 

Possible Status Values:

  • operational
  • degraded_performance
  • partial_outage
  • major_outage

This should allow you to correctly update the status of the components in your incident.

Best Regards,
Egor

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events