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

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events