The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a component using API

choi
Contributor
September 29, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Dave Parrish [Atlassian]
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 29, 2021

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

choi
Contributor
September 30, 2021

Hi @Dave Parrish [Atlassian] 

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!

choi
Contributor
October 4, 2021

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

Like David Hawkesworth likes this
TAGS
AUG Leaders

Atlassian Community Events