Validate a Reference Eligibility expression without saving it.
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-fields/example/reference-eligibility/validate"), Content = new StringContent("{ \"Expression\": \"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/admin/entity-fields/example/reference-eligibility/validate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Expression":"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/admin/entity-fields/example/reference-eligibility/validate \ --header 'Content-Type: application/json' \ --data '{ "Expression": "example" }'Authorizations
Section titled “Authorizations”- None
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”Request to validate a Reference Eligibility expression without saving it.
object
Expression authored against Current and Candidate.
Examplegenerated
{ "Expression": "example"}Request to validate a Reference Eligibility expression without saving it.
object
Expression authored against Current and Candidate.
Examplegenerated
{ "Expression": "example"}Request to validate a Reference Eligibility expression without saving it.
object
Expression authored against Current and Candidate.
Examplegenerated
{ "Expression": "example"}Responses
Section titled “Responses”OK
object
Dry-run result for a Reference Eligibility expression.
object
Whether the expression and metadata bind successfully.
Structured compiler diagnostics.
Structured Reference Eligibility compiler diagnostic.
object
Request field or canonical operand associated with the error.
Localized diagnostic text.
Stable diagnostic code.
Optional offending token.
Detected dependencies when validation succeeds.
Compiler-owned Reference Eligibility dependency.
object
Canonical Current or Candidate operand path.
Direct root field identifier when one exists.
Definition containing the bound operand.
Bound field identifier, or null for immutable system identity.
Whether the dependency supplies Current selection context.
Whether contributor changes require reverse validation.
object
object
object
object
Example
{ "Data": { "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Dry-run result for a Reference Eligibility expression.
object
Whether the expression and metadata bind successfully.
Structured compiler diagnostics.
Structured Reference Eligibility compiler diagnostic.
object
Request field or canonical operand associated with the error.
Localized diagnostic text.
Stable diagnostic code.
Optional offending token.
Detected dependencies when validation succeeds.
Compiler-owned Reference Eligibility dependency.
object
Canonical Current or Candidate operand path.
Direct root field identifier when one exists.
Definition containing the bound operand.
Bound field identifier, or null for immutable system identity.
Whether the dependency supplies Current selection context.
Whether contributor changes require reverse validation.
object
object
object
object
Example
{ "Data": { "Dependencies": [ { "Kind": 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
Dry-run result for a Reference Eligibility expression.
object
Whether the expression and metadata bind successfully.
Structured compiler diagnostics.
Structured Reference Eligibility compiler diagnostic.
object
Request field or canonical operand associated with the error.
Localized diagnostic text.
Stable diagnostic code.
Optional offending token.
Detected dependencies when validation succeeds.
Compiler-owned Reference Eligibility dependency.
object
Canonical Current or Candidate operand path.
Direct root field identifier when one exists.
Definition containing the bound operand.
Bound field identifier, or null for immutable system identity.
Whether the dependency supplies Current selection context.
Whether contributor changes require reverse validation.
object
object
object
object
Example
{ "Data": { "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Dry-run result for a Reference Eligibility expression.
object
Whether the expression and metadata bind successfully.
Structured compiler diagnostics.
Structured Reference Eligibility compiler diagnostic.
object
Request field or canonical operand associated with the error.
Localized diagnostic text.
Stable diagnostic code.
Optional offending token.
Detected dependencies when validation succeeds.
Compiler-owned Reference Eligibility dependency.
object
Canonical Current or Candidate operand path.
Direct root field identifier when one exists.
Definition containing the bound operand.
Bound field identifier, or null for immutable system identity.
Whether the dependency supplies Current selection context.
Whether contributor changes require reverse validation.
object
object
object
object
Example
{ "Data": { "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}