Skip to main content
Submitted by admin on 27 January 2022

1. Open REST Clients of your choice(like Postman etc)

2. select POST Method

3. use URL [your_domain]/node?_format=json

4. use in header

5. use in Body

 

{
    "type": [
        {
            "target_id": "video"
        }
    ],
    "title": [
        {
            "value": "Hello World video"
        }
    ],
    "body": [
        {
            "value": "How are you video?"
        }
    ]
}

 

5  Successful response you will get  response 201

{

    "nid": [

        {

            "value": 73

        }

    ],

    "uuid": [

        {

            "value": "9da32d0f-9249-4bcc-94ff-06c16d9d89a3"

        }

    ],

    "vid": [

        {

            "value": 194

        }

    ],

    "langcode": [

        {

            "value": "en"

        }

    ],

    "type": [

        {

            "target_id": "article",

            "target_type": "node_type",

            "target_uuid": "8728c028-2aed-458b-af5e-e8f244bdb281"

        }

    ],

    "revision_timestamp": [

        {

            "value": "2022-01-27T05:37:58+00:00",

            "format": "Y-m-d\\TH:i:sP"

        }

    ],

    "revision_uid": [

        {

            "target_id": 1,

            "target_type": "user",

            "target_uuid": "b94bbf7d-0139-43a0-8611-e8c3aab6803d",

            "url": "/socialproject/web/user/1"

        }

    ],

    "revision_log": [],

    "status": [

        {

            "value": true

        }

    ],

    "uid": [

        {

            "target_id": 1,

            "target_type": "user",

            "target_uuid": "b94bbf7d-0139-43a0-8611-e8c3aab6803d",

            "url": "/socialproject/web/user/1"

        }

    ],

    "title": [

        {

            "value": "Hello World2"

        }

    ],

    "created": [

        {

            "value": "2022-01-27T05:37:58+00:00",

            "format": "Y-m-d\\TH:i:sP"

        }

    ],

    "changed": [

        {

            "value": "2022-01-27T05:37:58+00:00",

            "format": "Y-m-d\\TH:i:sP"

        }

    ],

    "promote": [

        {

            "value": true

        }

    ],

    "sticky": [

        {

            "value": false

        }

    ],

    "default_langcode": [

        {

            "value": true

        }

    ],

    "revision_translation_affected": [

        {

            "value": true

        }

    ],

    "path": [

        {

            "alias": null,

            "pid": null,

            "langcode": "en"

        }

    ],

    "body": [

        {

            "value": "How are you2?",

            "format": null,

            "processed": "<p>How are you2?</p>\n",

            "summary": null

        }

    ],

    "comment": [

        {

            "status": 2,

            "cid": 0,

            "last_comment_timestamp": 0,

            "last_comment_name": null,

            "last_comment_uid": 0,

            "comment_count": 0

        }

    ],

    "field_image": [],

    "field_tags": []

}