One month down in 2025: How are your resolutions coming along? Check out how to get back on track 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?
- Greg-DB
Dropbox Staff
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.- uqbarNew 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-DB
Dropbox Staff
No, unfortunately I don't have a solution to offer for this.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 41 minutes ago
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 or Facebook.
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!