Edit project cover page using code

A project’s cover page is viewable at https://<hostname>/workspace/compass/cover-page/ri.compass.main.folder.<rid>

Can that cover page be edited using the API or some other code-based method?

I haven’t been able to find an endpoint that can edit the cover page and the URL doesn’t change when you edit the cover page (it’s a markdown editor). I had hoped the cover page was just an editable hidden markdown file in the project but I can’t find any evidence of that. My goal is to edit the project cover page based on the contents of the project.

Any thoughts?

curl 'https://xxxxxxxx/compass/api/projects/ri.compass.main.folder.xxxxxxxx/preview' \
  -X 'PUT' \
  -H 'authorization: Bearer XXXXXXX' \
  -H 'content-type: application/json' \
  --data-raw '{"longDescription":"Your markdown goes here"}'

This is the endpoint to update the content of the cover page. Use at your own risk :slight_smile:

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.