Forums

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

403 forbidden on Confluence REST API PUT

Boyang Fan
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!
November 6, 2018

I am looking to automate a procedure of creating new pages and also editing existing pages within Confluence.

Currently, I am referencing the following document:

https://developer.atlassian.com/cloud/confluence/rest-api-examples/

 

When playing around with the APIs, I noticed that all GET commands doesn't really give me any issues and returns back what I like to see. However, everytime I make a PUT or POST command, i get a response back of 403 forbidden. I have verified that my account can create, modify pages and spaces within the UI so theorically I should have the same privilege when making API calls.

An example of a CURL I used is as following to create a new page:

curl -u admin:admin -X POST -H 'Content-Type: application/json' -d'{"type":"page","title":"new page","space":{"key":"VAL"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' https://company.atlassian.net/wiki/rest/api/content/

 

I have verified that there exists a space named "VAL". Any suggestions on what I can do or what is causing this issue?

1 answer

0 votes
Merle Fischer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2018

Hi Boyang,

might not be helpful, but the last time we encountered inexplicable 403 errors when dealing with CONF and Jira, it came down to Proxy/Firewall Tool config problems, not Confluence or Jira itself, so you might want to look in that direction.

Hope this potentially helps,

Merle

----

edit: sorry just realized you're on cloud we were experiencing this on server, so my comment might not be helpful at all.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events