Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Updating a component using API

Hello

I want to update components on the StatusPage using webhook from another service.
But I can't update the components.

I set it up like this

----------

・URL
https://api.statuspage.io/v1/pages/{page_id}/components/{component_id}?api_key={api_key}

・Payload
{
  "component": {
    "status": "{status name}"
  }
}

----------

Do you have any idea what's wrong?
It is possible to change the status of a related component using the Incident Creation API.
so There is nothing wrong with {component_id} and {api_key}.

Appreciate any assistance

1 answer

1 accepted

0 votes
Answer accepted
Dave Parrish Atlassian Team Sep 29, 2021

Hey @choi! For that endpoint, make sure you're using the PATCH method (not POST). Does that do the trick?

Hi @Dave Parrish 

thank you for reply.
in case using Curl, Specify PATCH using the (-X) option.

But in case using payload,
Both PATCH Update a component and PUT Update a component have the same sample content type.

How can I make user I'm using the PATCH method?

Thanks!

I found that only POST is possible where I'm using webhook

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

2,458 views 6 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you