Resolve one proposed Reference selection against the current Form context.
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-candidates/selection"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"ExpectedFormSurfaceRowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\", \"SourceInstanceId\": \"example\", \"CurrentValues\": { \"additionalProperty\": \"example\" }, \"SelectedId\": \"example\", \"ParentContext\": { \"EntityDefinitionId\": \"example\", \"FormSurfaceId\": \"example\", \"ExpectedRevision\": \"example\", \"ItemId\": \"example\", \"ParentInstanceId\": \"example\", \"ParentFields\": { \"additionalProperty\": \"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-candidates/selection';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"ExpectedFormSurfaceRowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","SourceInstanceId":"example","CurrentValues":{"additionalProperty":"example"},"SelectedId":"example","ParentContext":{"EntityDefinitionId":"example","FormSurfaceId":"example","ExpectedRevision":"example","ItemId":"example","ParentInstanceId":"example","ParentFields":{"additionalProperty":"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-candidates/selection \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "SelectedId": "example", "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "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”Anchored Form request for one selected Reference value.
object
Exact saved Form Surface revision used by the caller.
Existing source 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.
Proposed target Entity Instance identifier.
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
Examplegenerated
{ "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "SelectedId": "example", "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } }}Anchored Form request for one selected Reference value.
object
Exact saved Form Surface revision used by the caller.
Existing source 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.
Proposed target Entity Instance identifier.
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
Examplegenerated
{ "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "SelectedId": "example", "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } }}Anchored Form request for one selected Reference value.
object
Exact saved Form Surface revision used by the caller.
Existing source 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.
Proposed target Entity Instance identifier.
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
Examplegenerated
{ "ExpectedFormSurfaceRowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "SourceInstanceId": "example", "CurrentValues": { "additionalProperty": "example" }, "SelectedId": "example", "ParentContext": { "EntityDefinitionId": "example", "FormSurfaceId": "example", "ExpectedRevision": "example", "ItemId": "example", "ParentInstanceId": "example", "ParentFields": { "additionalProperty": "example" } }}Responses
Section titled “Responses”OK
object
Safe selected-value resolution result.
object
Stable guidance code when selection cannot proceed.
Display-safe Reference candidate.
object
Candidate Entity Instance identifier.
Current candidate display name.
Optional current candidate subtitle.
Whether the candidate is archived.
Current candidate number.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
Access-shaped target scalar and Money values keyed by target field key. Money values contain Amount and CurrencyCode.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Item": { "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Safe selected-value resolution result.
object
Stable guidance code when selection cannot proceed.
Display-safe Reference candidate.
object
Candidate Entity Instance identifier.
Current candidate display name.
Optional current candidate subtitle.
Whether the candidate is archived.
Current candidate number.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
Access-shaped target scalar and Money values keyed by target field key. Money values contain Amount and CurrencyCode.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Item": { "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-value resolution result.
object
Stable guidance code when selection cannot proceed.
Display-safe Reference candidate.
object
Candidate Entity Instance identifier.
Current candidate display name.
Optional current candidate subtitle.
Whether the candidate is archived.
Current candidate number.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
Access-shaped target scalar and Money values keyed by target field key. Money values contain Amount and CurrencyCode.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Item": { "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Safe selected-value resolution result.
object
Stable guidance code when selection cannot proceed.
Display-safe Reference candidate.
object
Candidate Entity Instance identifier.
Current candidate display name.
Optional current candidate subtitle.
Whether the candidate is archived.
Current candidate number.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
Access-shaped target scalar and Money values keyed by target field key. Money values contain Amount and CurrencyCode.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Item": { "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Safe selected-value resolution result.
object
Stable guidance code when selection cannot proceed.
Display-safe Reference candidate.
object
Candidate Entity Instance identifier.
Current candidate display name.
Optional current candidate subtitle.
Whether the candidate is archived.
Current candidate number.
Safe compact reference metadata, projected only for a resolved visible Entity reference.
object
Access-shaped target scalar and Money values keyed by target field key. Money values contain Amount and CurrencyCode.
object
object
object
object
object
Example
{ "Data": { "State": 0, "Item": { "SemanticPresentation": { "UsageType": 0 } } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}