Skip to content

Apply an approved import plan.

POST
/api/workspace/admin/entity-definitions/import/apply
curl --request POST \
--url https://example.com/api/workspace/admin/entity-definitions/import/apply \
--header 'Content-Type: application/json' \
--data '{ "Yaml": "example", "TargetEntityDefinitionId": "example", "Refinements": [ { "FieldId": "example", "ResolvedEntityDefinitionId": "example" } ], "ConflictResolutions": [ { "ItemId": "example", "Action": 0 } ], "ApplyHeader": true, "SelectedItemIds": [ "example" ], "Security": { "OperationKey": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "UserSlotMappings": { "additionalProperty": "example" }, "PlanToken": "example", "ExpectedRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }'
  • None
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

Request payload to apply an approved import plan.

object
Yaml
required

YAML document content (same as used for plan generation).

string
TargetEntityDefinitionId

Target entity definition for update mode; null for create mode.

string
nullable
Refinements

User-provided reference refinements.

Array<object>
nullable

User-provided mapping for a reference field whose target entity was not found.

object
FieldId

Field identifier from YAML.

string
nullable
ResolvedEntityDefinitionId

Mapped entity definition ID; null to skip the field.

string
nullable
ConflictResolutions

User-provided conflict resolutions for update mode.

Array<object>
nullable

User decision for a conflicting plan item.

object
ItemId

Plan item identifier.

string
nullable
Action
integer format: int32
Allowed values: 0 1
ApplyHeader

Whether to apply entity-definition header changes.

boolean
SelectedItemIds

Selected actionable plan item identifiers; null applies all actionable items.

Array<string>
nullable
Security
required

Apply input for an Entity YAML v8 Security configuration.

object
OperationKey
required

Caller-owned idempotency key used by the matching plan.

string format: uuid
UserSlotMappings
required

Workspace-local user mappings for portable user slots.

object
key
additional properties
string
PlanToken
required

Opaque token returned by the matching Security plan.

string
ExpectedRowVersion
required

Security configuration row version returned by the matching plan.

string format: uuid

OK

Media typeapplication/json
object
Data
string
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}