I require help inserting a description into a Notion page using the API. My JSON structure appears incorrect. For example, consider:
{
"base": { "dbKey": "XYZ" },
"items": { "Caption": { "textLine": [{ "data": "Info text" }] } }
}
I require help inserting a description into a Notion page using the API. My JSON structure appears incorrect. For example, consider:
{
"base": { "dbKey": "XYZ" },
"items": { "Caption": { "textLine": [{ "data": "Info text" }] } }
}
hey, try putting the text under ‘properties’ with a ‘rich_text’ field instead of ‘items’. notion expects that structure. check the docs for the proper json schema. good luck!
Notion’s API expects the description to be structured as a property with the correct type. In my experience, sticking to the proper keys can save time. Instead of using an ‘items’ key, use ‘properties’ and apply a ‘rich_text’ field for the text value. This requires that you follow the exact property type definitions from Notion’s documentation. Adjusting your JSON structure as suggested should resolve the issue if your integration settings and permissions are correct.