Generate an import plan from a YAML document.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/entity-definitions/import/plan"), Content = new StringContent("{ \"Yaml\": \"example\", \"TargetEntityDefinitionId\": \"example\", \"Refinements\": [ { \"FieldId\": \"example\", \"ResolvedEntityDefinitionId\": \"example\" } ], \"Security\": { \"OperationKey\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"UserSlotMappings\": { \"additionalProperty\": \"example\" }, \"ExpectedRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\" } }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/entity-definitions/import/plan';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Yaml":"example","TargetEntityDefinitionId":"example","Refinements":[{"FieldId":"example","ResolvedEntityDefinitionId":"example"}],"Security":{"OperationKey":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","UserSlotMappings":{"additionalProperty":"example"},"ExpectedRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/entity-definitions/import/plan \ --header 'Content-Type: application/json' \ --data '{ "Yaml": "example", "TargetEntityDefinitionId": "example", "Refinements": [ { "FieldId": "example", "ResolvedEntityDefinitionId": "example" } ], "Security": { "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "UserSlotMappings": { "additionalProperty": "example" }, "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request payload to generate an import plan from YAML.
object
YAML document content.
Target entity definition for update mode; null for create mode.
User-provided reference refinements for unresolved dependencies.
User-provided mapping for a reference field whose target entity was not found.
object
Field identifier from YAML.
Mapped entity definition ID; null to skip the field.
Planning input for an Entity YAML v8 Security configuration.
object
Caller-owned idempotency key reused by apply.
Workspace-local user mappings for portable user slots.
object
Expected current Security configuration row version; null only for create mode.
Examplegenerated
{ "Yaml": "example", "TargetEntityDefinitionId": "example", "Refinements": [ { "FieldId": "example", "ResolvedEntityDefinitionId": "example" } ], "Security": { "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "UserSlotMappings": { "additionalProperty": "example" }, "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }}Request payload to generate an import plan from YAML.
object
YAML document content.
Target entity definition for update mode; null for create mode.
User-provided reference refinements for unresolved dependencies.
User-provided mapping for a reference field whose target entity was not found.
object
Field identifier from YAML.
Mapped entity definition ID; null to skip the field.
Planning input for an Entity YAML v8 Security configuration.
object
Caller-owned idempotency key reused by apply.
Workspace-local user mappings for portable user slots.
object
Expected current Security configuration row version; null only for create mode.
Examplegenerated
{ "Yaml": "example", "TargetEntityDefinitionId": "example", "Refinements": [ { "FieldId": "example", "ResolvedEntityDefinitionId": "example" } ], "Security": { "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "UserSlotMappings": { "additionalProperty": "example" }, "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }}Request payload to generate an import plan from YAML.
object
YAML document content.
Target entity definition for update mode; null for create mode.
User-provided reference refinements for unresolved dependencies.
User-provided mapping for a reference field whose target entity was not found.
object
Field identifier from YAML.
Mapped entity definition ID; null to skip the field.
Planning input for an Entity YAML v8 Security configuration.
object
Caller-owned idempotency key reused by apply.
Workspace-local user mappings for portable user slots.
object
Expected current Security configuration row version; null only for create mode.
Examplegenerated
{ "Yaml": "example", "TargetEntityDefinitionId": "example", "Refinements": [ { "FieldId": "example", "ResolvedEntityDefinitionId": "example" } ], "Security": { "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "UserSlotMappings": { "additionalProperty": "example" }, "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }}Responses
Section titled “Responses”OK
object
Root model for an entity definition import plan.
object
Plan header with entity definition metadata.
object
Existing entity definition ID for update mode.
Existing entity definition name for update mode.
Entity name from YAML.
Explanatory message when status is not OK.
Property differences for update mode.
Property difference between current and incoming values.
object
Property name.
Current value (null for create).
Incoming value from YAML.
Hierarchical plan sections.
One section in the import plan (e.g., Data Schema, Statements).
object
Machine-readable section key.
Human-readable section label.
Plan items within this section.
One item in the import plan.
object
Identifier (YAML ID or existing ID).
Key/Name for display.
Optional display name.
Explanatory message when status is not OK.
Property differences when action is Update.
Property difference between current and incoming values.
object
Property name.
Current value (null for create).
Incoming value from YAML.
Whether the item cannot be applied without an explicit conflict resolution.
Returns a deterministic atomic replacement plan.
object
Describes one portable configuration change.
object
Describes one portable validation diagnostic.
object
object
object
object
object
Example
{ "Data": { "Mode": 0, "Header": { "Action": 0, "Status": 0 }, "Sections": [ { "Items": [ { "Action": 0, "Status": 0 } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}