# Clarification Needed on Draft Node Types and Subtypes in DEV REST-API Wix Documentation

**URL:** <https://forum.wixstudio.com/t/clarification-needed-on-draft-node-types-and-subtypes-in-dev-rest-api-wix-documentation/55621>\
**Category:** Ask the community\
**Tags:** api, code, wix-blog\
**Created:** [January 20, 2024, 10:11pm UTC](https://forum.wixstudio.com/t/clarification-needed-on-draft-node-types-and-subtypes-in-dev-rest-api-wix-documentation/55621 "2024-01-20T22:11:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehmet\_Emre\_Sever](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mehmet_emre_sever/32/87384_2.png) [@Mehmet\_Emre\_Sever](https://forum.wixstudio.com/u/Mehmet_Emre_Sever)\
**Post date:** [January 20, 2024, 10:11pm UTC](https://forum.wixstudio.com/t/clarification-needed-on-draft-node-types-and-subtypes-in-dev-rest-api-wix-documentation/55621/1 "2024-01-20T22:11:46Z")

</div>

I am currently working on creating a draft that includes an image, text, and a headline. However, I have encountered a significant challenge due to the apparent lack of detailed documentation regarding the various draft node types and their corresponding subtypes. Specifically, I am referring to the following 30 supported node types:

- PARAGRAPH
- TEXT
- HEADING
- BULLETED\_LIST
- ORDERED\_LIST
- LIST\_ITEM
- BLOCKQUOTE
- CODE\_BLOCK
- VIDEO
- DIVIDER
- FILE
- GALLERY
- GIF
- HTML
- IMAGE
- LINK\_PREVIEW
- MAP
- POLL
- APP\_EMBED
- BUTTON
- COLLAPSIBLE\_LIST
- TABLE
- EMBED
- COLLAPSIBLE\_ITEM
- COLLAPSIBLE\_ITEM\_TITLE
- (and others)

**While I understand these types, there seems to be no information on how to structure the JSON payload for each type, especially regarding their subdata** like `textData` for TEXT or `imageData`.

"One of the primary challenges I’ve faced relates to the correct structuring of the `IMAGE` node. Based on the code I’ve managed to compile from various sources and issue tickets created by other users, I understand that an `IMAGE` node should be structured as follows:

```javascript
{
    "type": "IMAGE",
    "id": "",
    "imageData": {
        "image": {
            "src": {
                "url": "https://i.ytimg.com/vi/RZeNYTCZ70s/maxresdefault.jpg"
            }
        }
    }
}

```

But this lack of detail creates confusion and hinders efficient use of the API and **Right now I am having issue with HEADLINE node structuring am I missing something, some tutorial or general knowledge about richtextcontent?**

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [January 22, 2024, 7:01pm UTC](https://forum.wixstudio.com/t/clarification-needed-on-draft-node-types-and-subtypes-in-dev-rest-api-wix-documentation/55621/2 "2024-01-22T19:01:12Z")

</div>

Can you link to the doc?
