Help

Update long text field with rich text via API

Topic Labels: API
2101 1
cancel
Showing results for 
Search instead for 
Did you mean: 
cloder
4 - Data Explorer
4 - Data Explorer

I'm trying to update a long text field with rich text, but the documentation seems all over the place,

How do I update the field via a POST request? (or any other way).

For context, Airtable says that Markdown is supported in rich text fields which is partially true. A different doc shows that only a small set of Markdown is supported in the long text field.

I'm trying to update the field with links and bold text, which apparently isn't supported Markdown syntax, BUT it is supported in the rich text field.

In the base's api documentation, they show an AST:

[
    {
        "type": "paragraph",
        "value": [
            {
                "type": "paragraphLine",
                "value": [
                    {
                        "type": "text",
                        "value": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam et nulla vulputate, sollicitudin risus sed, suscipit sapien. "
                    },
                    {
                        "type": "text",
                        "value": "Donec ac tempus velit, nec efficitur augue. Donec fermentum ex cursus, tincidunt justo ac, bibendum turpis",
                        "attributes": {
                            "bold": true,
                        }
                    }
                ]
            },
            {
                "type": "paragraphLine",
                "value": [
                    {
                        "type": "mention",
                        "value": {
                            "userName": "Waffles Wags-a-lot",
                            "userId": "usrR2o0pNsHC4FdrT",
                            "mentionId": "menE1i9oBaGX3DseR"
                        },
                        "attributes": {
                            "bold": true
                        }
                    }
                ]
            }
        ]
    }
]

 But they don't show all the AST.

Additionally, the network calls made when updating a cell don't correspond to the AST above.

 

Any ideas?

1 Reply 1
levyelectric
4 - Data Explorer
4 - Data Explorer

Same issue here.  Would be great for Airtable support to clarify the documentation on respond here.