Forum Discussion

uqbar's avatar
uqbar
New member | Level 2
9 years ago

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's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.
    • uqbar's avatar
      uqbar
      New member | Level 2
      Thanks 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's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        No, unfortunately I don't have a solution to offer for this.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 41 minutes ago
352 Following

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!