Forums

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

How to Add status on identified page using Rest API ?

Christophe Vidaillac
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2023

Hello,

I tried to use POST v2 request as follow:

 

curl --request POST \
--url 'https://xxxxx.atlassian.net/wiki/api/v2/pages/22489759745/properties' \
-H "Authorization: Basic Y2hy....Tk0" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{
"key": "cw-status"
}'

The idea is to setup Status of the page like the one we are doing when we are editing the page and click on "Add Status" button on top of the page, near the "Remove emoji" and "Add header image" buttons, as illustrated in below screenshot:

add_status.png

 

But, I'm getting following error:

{"errors":[{"status":400,"code":"INVALID_REQUEST_BODY","title":"value: may not be null","detail":null}]}

 

Any idea ?

Thanks for your help

Christophe

0 answers

Suggest an answer

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

Atlassian Community Events