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: 

Issue having adding attachment to Confluence page via API

Vishwanath
June 1, 2021

Hello Team

I am having an issue adding attachments (jpeg/png) to the Confluence page via API.

I receive <status-code>404</status-code> response.

I am using Postman and using CURL  as defined in the documentation.

Any help would be highly appreciated.

Thanks in Advance

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Niranjan
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 Champions.
June 1, 2021

Hi @Vishwanath ,

404 is 

Returned if;

  • The requested content is not found.
  • The user does not have permission to view it
  • The attachment exceeds the maximum configured attachment size.

https://developer.atlassian.com/cloud/confluence/rest/api-group-content---attachments/#api-api-content-id-child-attachment-post

Vishwanath
June 3, 2021

Hi @Niranjan 

We are able to update content and via the confluence page able to add attachments.

It is only thru API, seeing issues.

Niranjan
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 Champions.
June 3, 2021

Hi @Vishwanath - The issue may be related to the way to use the credentials in the POST/PUT RESTAPI methods. 

TAGS
AUG Leaders

Atlassian Community Events