1- For the "site header's LOGO" only one attachment under the home page of the SPACE
2- for all other images, attached to the page
3- in the HTML must referrer to the attachment
Documentation: https://developer.atlassian.com/cloud/confluence/rest/#api-content-id-child-attachment-post
https://docs.atlassian.com/ConfluenceServer/rest/6.7.2/
With postman: GET attachment of a page:
GET "https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/111575100/descendant/attachment"
1- get the homepage "content id" "GET Space" | GET https://thefreetelecomuni.atlassian.net/wiki/rest/api/space/TEST/ >>>>> homepage: "/rest/api/content/164855963" | |||||||
2- use this id to get the attachment id "GET Attachment" | GET https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/164855963 GET https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/164855963/descendant/attachment >>>>>> id: "att164757511", >>>>>> title: "headerFTU.jpg", >>>>> _links: self: "https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/att164757511", | |||||||
3- use the link to get attachment info | GET: https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/att164757511 >>>> _links to the image: base: "https://thefreetelecomuni.atlassian.net/wiki" webui: "/spaces/TEST/overview?preview=%2F164855963%2F164757511%2FheaderFTU.jpg", | |||||||
Success | GET https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/164855963/descendant/attachment
| |||||||
Faile |
|
...
| |