My team currently using this curl to update some wiki report page through api. Where the dynamicRequest.txt contains some html body.
curl, --header, Accept-Language:en-us, --header, Accept: */*, --header, Content-Type:application/json, -b, ./files/sse_wiki_cookie.txt, -X, PUT, https://ssewiki.apple.com/rest/api/content/[pageId], -d, @./files/ssewiki1692039010943_dynamicRequest.txt
We want to add an expand Macro to store some data in one cell of the table.
I simply copy the expand Macro structure from the page inspect itself, But It is not working. I think the js script does not link to my container. Please share any ideas. Thank you
Hello @Huangyingrui Wang ,
If you set the new data in
sse_wiki_cookie.txt
so you can get the page body first and then append data to it or erase current body with the data.
The storage format would be:
<ac:structured-macro ac:name="expand" ac:schema-version="1" ac:macro-id="id">
<ac:rich-text-body> {YOUR DATA HERE}
</ac:rich-text-body>
</ac:structured-macro>
So you just wrap the content inside such code. It can have also some additional attributes, but this one is the simple option.
Hello, @Andrii Maliuta
Thanks for your Reply.
It works perfectly.
Only one problem, I guess it is a typo.
Should put New HTML Data into ssewiki_dynamicRequest.txt
sse_wiki_cookie.txt is for Auth_token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.