Can I add custom stylesheets for a space by rest api?

Ronaldo Huang December 28, 2020

If I can,May I get the url and parameters?

1 answer

0 votes
Daniel Ebers
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.
December 28, 2020

Hi Ronaldo,

although there was no context around your question which could help Community members to recommend a good approach I found at least a similar question which could be helpful:

https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-get-a-css-file-or-cdn-for-the-default/qaq-p/778701

You could double check with API documentation if something corresponding to your request is available but probably (as per the linked thread) - it is not.
https://developer.atlassian.com/server/confluence/confluence-server-rest-api/

Regards,
Daniel

Ronaldo Huang December 29, 2020

@Daniel Ebers 

Hi,Daniel Ebers,

I write my css in confluence space view set by visit {confluenceServer}/spaces/viewstylesheet.action?key=PT11332 manually now. 

I want to set the space view style by rest api, then I can change the space style automatically. 

But I haven't got the api url and parameters.

TR
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!
March 17, 2023

@Ronaldo Huang did you ever find a solution for this? I'm trying to view the style sheet by API but can't find how to do it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events