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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,428
Community Members
 
Community Events
176
Community Groups

Updating a component using API

Edited

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

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

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!

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

Like David Hawkesworth likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events