Inserting Blank line in Notes Column Via API

Can someone please shed some light on how to insert a new line via the API into a Notes column in a table.

Here is some quick context:

Any help here is greatly appreciated just been driving me crazy for the last few days

Hi @John_Pia - Sorry for the slow reply. I moved this post into the Developer Central category, since it’s related to our APIs (and it’s a channel I monitor more closely).

To add a newline in your cell value should be as simple as adding a newline to the text you are inserting. Here is an example of a request that worked for me:

POST https://coda.io/apis/v1/docs/<DOC_ID>/tables/Table/rows

{
  "rows":[
    {
      "cells":[
        {
          "column":"Notes",
          "value":"abc\ndef"
        }
      ]
    }
  ]
}

It would seem that the newline isn’t being encoded correctly, such that you are ending up with the literal string \n in your cell instead. Can you share some of the code you are using to make the request?

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