Resolve one Form hierarchy selection to its safe root-to-terminal chain.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/entity/example/ui/form/example/items/example/reference-hierarchy/selection"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"Context\": { \"ExpectedFormSurfaceRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"SourceInstanceId\": \"example\", \"CurrentValues\": { \"additionalProperty\": \"example\" }, \"ParentContext\": { \"EntityDefinitionId\": \"example\", \"FormSurfaceId\": \"example\", \"ExpectedRevision\": \"example\", \"ItemId\": \"example\", \"ParentInstanceId\": \"example\", \"ParentFields\": { \"additionalProperty\": \"example\" } } }, \"Selection\": { \"SelectedId\": \"example\" } }") { 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/entity/example/ui/form/example/items/example/reference-hierarchy/selection';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"Context":{"ExpectedFormSurfaceRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","SourceInstanceId":"example","CurrentValues":{"additionalProperty":"example"},"ParentContext":{"EntityDefinitionId":"example","FormSurfaceId":"example","ExpectedRevision":"example","ItemId":"example","ParentInstanceId":"example","ParentFields":{"additionalProperty":"example"}}},"Selection":{"SelectedId":"example"}}'};
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/entity/example/ui/form/example/items/example/reference-hierarchy/selection \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "Context": { "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } } }, "Selection": { "SelectedId": "example" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path 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”Form hierarchy selected-chain request.
object
Saved Form context used by hierarchy model, page, and selection routes.
object
Exact owning Form Surface revision.
Existing source record identifier for edit, or null for create.
Dynamic Form draft values keyed by the server-declared source field keys. Reference values are raw Entity Instance identifier strings, not value wrappers.
object
A typed scalar or complex field value. Reference fields use the raw Entity Instance identifier string.
The parent draft of a child draft in a Form with a WithParent section, sent with a child-scoped request made
before the Form is saved. The server builds the parent’s effective draft for the actor (defaults, effects and
calculations of the parent Form evaluation) and exposes it only as the record the child’s parent Reference points to;
the child’s parent Reference is set by the server. Preview only: nothing is written and nothing is granted, the Form
submission decides everything again.
object
Id of the parent Entity definition.
Id of the parent Form surface.
The Submission.Revision of the parent Form the client renders.
Id of a WithParent related-table item of the child’s relation (any repeated item of that relation; its
own child Form is the one the request runs on).
Id of the existing parent record; null while the parent is created by the same Form.
Unsaved parent draft values by field key, as the parent Form evaluation takes them.
object
One proposed terminal hierarchy selection.
object
Proposed terminal Entity Instance identifier.
Examplegenerated
{ "Context": { "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } } }, "Selection": { "SelectedId": "example" }}Form hierarchy selected-chain request.
object
Saved Form context used by hierarchy model, page, and selection routes.
object
Exact owning Form Surface revision.
Existing source record identifier for edit, or null for create.
Dynamic Form draft values keyed by the server-declared source field keys. Reference values are raw Entity Instance identifier strings, not value wrappers.
object
A typed scalar or complex field value. Reference fields use the raw Entity Instance identifier string.
The parent draft of a child draft in a Form with a WithParent section, sent with a child-scoped request made
before the Form is saved. The server builds the parent’s effective draft for the actor (defaults, effects and
calculations of the parent Form evaluation) and exposes it only as the record the child’s parent Reference points to;
the child’s parent Reference is set by the server. Preview only: nothing is written and nothing is granted, the Form
submission decides everything again.
object
Id of the parent Entity definition.
Id of the parent Form surface.
The Submission.Revision of the parent Form the client renders.
Id of a WithParent related-table item of the child’s relation (any repeated item of that relation; its
own child Form is the one the request runs on).
Id of the existing parent record; null while the parent is created by the same Form.
Unsaved parent draft values by field key, as the parent Form evaluation takes them.
object
One proposed terminal hierarchy selection.
object
Proposed terminal Entity Instance identifier.
Examplegenerated
{ "Context": { "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } } }, "Selection": { "SelectedId": "example" }}Form hierarchy selected-chain request.
object
Saved Form context used by hierarchy model, page, and selection routes.
object
Exact owning Form Surface revision.
Existing source record identifier for edit, or null for create.
Dynamic Form draft values keyed by the server-declared source field keys. Reference values are raw Entity Instance identifier strings, not value wrappers.
object
A typed scalar or complex field value. Reference fields use the raw Entity Instance identifier string.
The parent draft of a child draft in a Form with a WithParent section, sent with a child-scoped request made
before the Form is saved. The server builds the parent’s effective draft for the actor (defaults, effects and
calculations of the parent Form evaluation) and exposes it only as the record the child’s parent Reference points to;
the child’s parent Reference is set by the server. Preview only: nothing is written and nothing is granted, the Form
submission decides everything again.
object
Id of the parent Entity definition.
Id of the parent Form surface.
The Submission.Revision of the parent Form the client renders.
Id of a WithParent related-table item of the child’s relation (any repeated item of that relation; its
own child Form is the one the request runs on).
Id of the existing parent record; null while the parent is created by the same Form.
Unsaved parent draft values by field key, as the parent Form evaluation takes them.
object
One proposed terminal hierarchy selection.
object
Proposed terminal Entity Instance identifier.
Examplegenerated
{ "Context": { "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } } }, "Selection": { "SelectedId": "example" }}Responses
Section titled “Responses”OK
object
Safe selected hierarchy chain resolution.
object
Stable guidance code for a closed or ineligible state.
Readable root-to-terminal chain for eligible or observable ineligible selections only.
One display-safe hierarchy option.
object
Entity Instance identifier.
Current display name.
Optional current subtitle.
Whether at least one readable structural child exists.
Whether the option may be returned as the terminal Reference value.
Optional safe localized explanation for a non-confirmable state.
Compact runtime payload for one resolved or unresolved entity reference.
object
Linked entity identifier when resolved.
Linked entity number when resolved.
Linked entity display name from the presentation cache when resolved.
Linked entity subtitle from the presentation cache when resolved.
Projected primary-field scalar values and requested nested reference values keyed by target field key when resolved.
object
Linked entity definition identifier when resolved.
Compact server-created previews for projected Markdown fields, keyed by target field key.
object
Safe compact visible-text representation of a Markdown value.
object
Visible text when available.
Whether the visible text was shortened for compact presentation.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Chain": [ { "ConfirmationState": 0 } ], "SelectedValue": { "State": 0, "ProjectedPlainTextPreviews": { "additionalProperty": { "State": 0 } }, "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Safe selected hierarchy chain resolution.
object
Stable guidance code for a closed or ineligible state.
Readable root-to-terminal chain for eligible or observable ineligible selections only.
One display-safe hierarchy option.
object
Entity Instance identifier.
Current display name.
Optional current subtitle.
Whether at least one readable structural child exists.
Whether the option may be returned as the terminal Reference value.
Optional safe localized explanation for a non-confirmable state.
Compact runtime payload for one resolved or unresolved entity reference.
object
Linked entity identifier when resolved.
Linked entity number when resolved.
Linked entity display name from the presentation cache when resolved.
Linked entity subtitle from the presentation cache when resolved.
Projected primary-field scalar values and requested nested reference values keyed by target field key when resolved.
object
Linked entity definition identifier when resolved.
Compact server-created previews for projected Markdown fields, keyed by target field key.
object
Safe compact visible-text representation of a Markdown value.
object
Visible text when available.
Whether the visible text was shortened for compact presentation.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Chain": [ { "ConfirmationState": 0 } ], "SelectedValue": { "State": 0, "ProjectedPlainTextPreviews": { "additionalProperty": { "State": 0 } }, "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Safe selected hierarchy chain resolution.
object
Stable guidance code for a closed or ineligible state.
Readable root-to-terminal chain for eligible or observable ineligible selections only.
One display-safe hierarchy option.
object
Entity Instance identifier.
Current display name.
Optional current subtitle.
Whether at least one readable structural child exists.
Whether the option may be returned as the terminal Reference value.
Optional safe localized explanation for a non-confirmable state.
Compact runtime payload for one resolved or unresolved entity reference.
object
Linked entity identifier when resolved.
Linked entity number when resolved.
Linked entity display name from the presentation cache when resolved.
Linked entity subtitle from the presentation cache when resolved.
Projected primary-field scalar values and requested nested reference values keyed by target field key when resolved.
object
Linked entity definition identifier when resolved.
Compact server-created previews for projected Markdown fields, keyed by target field key.
object
Safe compact visible-text representation of a Markdown value.
object
Visible text when available.
Whether the visible text was shortened for compact presentation.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Chain": [ { "ConfirmationState": 0 } ], "SelectedValue": { "State": 0, "ProjectedPlainTextPreviews": { "additionalProperty": { "State": 0 } }, "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Safe selected hierarchy chain resolution.
object
Stable guidance code for a closed or ineligible state.
Readable root-to-terminal chain for eligible or observable ineligible selections only.
One display-safe hierarchy option.
object
Entity Instance identifier.
Current display name.
Optional current subtitle.
Whether at least one readable structural child exists.
Whether the option may be returned as the terminal Reference value.
Optional safe localized explanation for a non-confirmable state.
Compact runtime payload for one resolved or unresolved entity reference.
object
Linked entity identifier when resolved.
Linked entity number when resolved.
Linked entity display name from the presentation cache when resolved.
Linked entity subtitle from the presentation cache when resolved.
Projected primary-field scalar values and requested nested reference values keyed by target field key when resolved.
object
Linked entity definition identifier when resolved.
Compact server-created previews for projected Markdown fields, keyed by target field key.
object
Safe compact visible-text representation of a Markdown value.
object
Visible text when available.
Whether the visible text was shortened for compact presentation.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Chain": [ { "ConfirmationState": 0 } ], "SelectedValue": { "State": 0, "ProjectedPlainTextPreviews": { "additionalProperty": { "State": 0 } }, "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Safe selected hierarchy chain resolution.
object
Stable guidance code for a closed or ineligible state.
Readable root-to-terminal chain for eligible or observable ineligible selections only.
One display-safe hierarchy option.
object
Entity Instance identifier.
Current display name.
Optional current subtitle.
Whether at least one readable structural child exists.
Whether the option may be returned as the terminal Reference value.
Optional safe localized explanation for a non-confirmable state.
Compact runtime payload for one resolved or unresolved entity reference.
object
Linked entity identifier when resolved.
Linked entity number when resolved.
Linked entity display name from the presentation cache when resolved.
Linked entity subtitle from the presentation cache when resolved.
Projected primary-field scalar values and requested nested reference values keyed by target field key when resolved.
object
Linked entity definition identifier when resolved.
Compact server-created previews for projected Markdown fields, keyed by target field key.
object
Safe compact visible-text representation of a Markdown value.
object
Visible text when available.
Whether the visible text was shortened for compact presentation.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Chain": [ { "ConfirmationState": 0 } ], "SelectedValue": { "State": 0, "ProjectedPlainTextPreviews": { "additionalProperty": { "State": 0 } }, "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}