create_record
Create a record in a collection and publish it immediately. data must match the collection schema (inspect it with describe_resource). Returns the resource_key to use with get_record/update_record. Requires the CREATE permission on this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Optional external identifier for deduplication; creating a second record with the same key returns a conflict. | |
| data | Yes | Document body matching the collection schema. | |
| parents | No | Parent placeholders for nested collection resource_ids. | |
| collection | Yes | Collection resource_id from discover_resources. |