We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
uqbar
9 years agoNew member | Level 2
line break character in JSON
We are trying to use add_folder_member with a custom_message that includes line breaks.
We tried passing them as \n , \r, \n\r , \u0010. They get all stripped out
What is the right syntax to use?
4 Replies
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks for the post! I don't believe we officially support any formatting like this for the message, but I'll be sure to pass this along as a feature request. - uqbar9 years agoNew member | Level 2Thanks for the quick reply Greg. Does it mean that for now there is no way to pass line breaks in the JSON body? That would be quite limiting considering that when you type a custom message manually there is no such restriction.
Any workaround you can think of? Like a way of updating the default message for a folder so that we don't have to pass a custom message anymore? - Greg-DB9 years ago
Dropbox Community Moderator
No, unfortunately I don't have a solution to offer for this. - uqbar9 years agoNew member | Level 2ok thank for your help Greg. we'll adopt "write unformatted one-liners" as a temporary solution, hoping the support for line breaks will make into the features in the future
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!