Create resource
drupal_create_resourceCreate a new resource (content entity) for an entity_type/bundle. JSON:API: POST /jsonapi/{entity_type}/{bundle} → 201. Body is { data: { type: entity_type--bundle, attributes, relationships? } }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bundle | Yes | The bundle machine name, e.g. "article", "tags", "user". | |
| attributes | Yes | Field values, e.g. { "title": "Hello", "body": { "value": "…", "format": "plain_text" } }. | |
| entity_type | Yes | The entity type machine name, e.g. "node", "taxonomy_term", "user". | |
| relationships | No | Optional relationships, e.g. { "field_tags": { "data": [{ "type": "taxonomy_term--tags", "id": "<uuid>" }] } }. |