Return the saved hierarchy model and current Form eligibility-context state.
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/model"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"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\" } } }") { 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/model';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}}}'};
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/model \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "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" } } }'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”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
Examplegenerated
{ "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" } }}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
Examplegenerated
{ "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" } }}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
Examplegenerated
{ "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" } }}Responses
Section titled “Responses”OK
object
Hierarchy configuration response and current eligibility-context state.
object
Stable guidance code for a closed state.
Server-derived hierarchy configuration for one saved Form field or Table filter.
object
Owning Form or Table Surface revision required by subsequent requests.
Bound terminal scalar Reference field identifier.
Fixed root-to-terminal hierarchy path.
object
Number of rendered levels, equal to Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.ReferencePath count plus one.
Root-to-terminal level descriptors.
One rendered explicit hierarchy level.
object
Zero-based root-to-terminal level index.
Entity Definition represented by this level.
Reference field relating the next level to this level; null for the terminal level.
Safe level label.
Saved terminal-to-ancestor reference path used to derive Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.Levels.
Arbitrary-depth self-parent hierarchy descriptor.
object
Recursive target Entity Definition identifier.
Saved direct self-reference parent field identifier.
Fixed maximum chain depth that one picker restore may materialize.
object
object
object
object
Example
{ "Data": { "State": 0, "Model": { "SourceKind": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Hierarchy configuration response and current eligibility-context state.
object
Stable guidance code for a closed state.
Server-derived hierarchy configuration for one saved Form field or Table filter.
object
Owning Form or Table Surface revision required by subsequent requests.
Bound terminal scalar Reference field identifier.
Fixed root-to-terminal hierarchy path.
object
Number of rendered levels, equal to Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.ReferencePath count plus one.
Root-to-terminal level descriptors.
One rendered explicit hierarchy level.
object
Zero-based root-to-terminal level index.
Entity Definition represented by this level.
Reference field relating the next level to this level; null for the terminal level.
Safe level label.
Saved terminal-to-ancestor reference path used to derive Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.Levels.
Arbitrary-depth self-parent hierarchy descriptor.
object
Recursive target Entity Definition identifier.
Saved direct self-reference parent field identifier.
Fixed maximum chain depth that one picker restore may materialize.
object
object
object
object
Example
{ "Data": { "State": 0, "Model": { "SourceKind": 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
Hierarchy configuration response and current eligibility-context state.
object
Stable guidance code for a closed state.
Server-derived hierarchy configuration for one saved Form field or Table filter.
object
Owning Form or Table Surface revision required by subsequent requests.
Bound terminal scalar Reference field identifier.
Fixed root-to-terminal hierarchy path.
object
Number of rendered levels, equal to Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.ReferencePath count plus one.
Root-to-terminal level descriptors.
One rendered explicit hierarchy level.
object
Zero-based root-to-terminal level index.
Entity Definition represented by this level.
Reference field relating the next level to this level; null for the terminal level.
Safe level label.
Saved terminal-to-ancestor reference path used to derive Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.Levels.
Arbitrary-depth self-parent hierarchy descriptor.
object
Recursive target Entity Definition identifier.
Saved direct self-reference parent field identifier.
Fixed maximum chain depth that one picker restore may materialize.
object
object
object
object
Example
{ "Data": { "State": 0, "Model": { "SourceKind": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Hierarchy configuration response and current eligibility-context state.
object
Stable guidance code for a closed state.
Server-derived hierarchy configuration for one saved Form field or Table filter.
object
Owning Form or Table Surface revision required by subsequent requests.
Bound terminal scalar Reference field identifier.
Fixed root-to-terminal hierarchy path.
object
Number of rendered levels, equal to Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.ReferencePath count plus one.
Root-to-terminal level descriptors.
One rendered explicit hierarchy level.
object
Zero-based root-to-terminal level index.
Entity Definition represented by this level.
Reference field relating the next level to this level; null for the terminal level.
Safe level label.
Saved terminal-to-ancestor reference path used to derive Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.Levels.
Arbitrary-depth self-parent hierarchy descriptor.
object
Recursive target Entity Definition identifier.
Saved direct self-reference parent field identifier.
Fixed maximum chain depth that one picker restore may materialize.
object
object
object
object
Example
{ "Data": { "State": 0, "Model": { "SourceKind": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Hierarchy configuration response and current eligibility-context state.
object
Stable guidance code for a closed state.
Server-derived hierarchy configuration for one saved Form field or Table filter.
object
Owning Form or Table Surface revision required by subsequent requests.
Bound terminal scalar Reference field identifier.
Fixed root-to-terminal hierarchy path.
object
Number of rendered levels, equal to Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.ReferencePath count plus one.
Root-to-terminal level descriptors.
One rendered explicit hierarchy level.
object
Zero-based root-to-terminal level index.
Entity Definition represented by this level.
Reference field relating the next level to this level; null for the terminal level.
Safe level label.
Saved terminal-to-ancestor reference path used to derive Moltaro.Entity.ReferenceHierarchy.Models.EntityReferenceHierarchyExplicitPathModel.Levels.
Arbitrary-depth self-parent hierarchy descriptor.
object
Recursive target Entity Definition identifier.
Saved direct self-reference parent field identifier.
Fixed maximum chain depth that one picker restore may materialize.
object
object
object
object
Example
{ "Data": { "State": 0, "Model": { "SourceKind": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}