Sign in

Create node (JSON:API)

documented

Create a new node for the given content type.

POST /jsonapi/node/{bundle}Nodesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$drupal_base_url}}/jsonapi/node/{{$bundle}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/vnd.api+json" \
  -H "Content-Type: application/vnd.api+json" \
  -d '{"data": {"type": "node--{{$bundle}}", "attributes": {"title": "{{$title}}", "body": {"value": "{{$body}}", "format": "plain_text"}}}}' 
Create node (JSON:API) · drupal · OpenIntegrations