Skip to content

fix: use GET+POST instead of PUT for Confluence Server attach_content (#1660) - #1666

Open
mrcrysta1 wants to merge 1 commit into
atlassian-api:masterfrom
mrcrysta1:fix/confluence-server-attach-content
Open

fix: use GET+POST instead of PUT for Confluence Server attach_content (#1660)#1666
mrcrysta1 wants to merge 1 commit into
atlassian-api:masterfrom
mrcrysta1:fix/confluence-server-attach-content

Conversation

@mrcrysta1

Copy link
Copy Markdown
Contributor

Fixes #1660. Confluence Server does not support PUT on the child/attachment endpoint. Changed attach_content() to GET existing attachment first, then POST to create or PUT on specific attachment ID to update.

…atlassian-api#1660)

Confluence Server doesn't support PUT on the child/attachment endpoint.
This fix checks if the attachment exists first (GET), then creates (POST)
or updates (PUT on specific attachment ID) accordingly.

Fixes atlassian-api#1660
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confluence Server: attach_content() uses PUT on child/attachment, causing 405

1 participant