Validate a calculation expression for one field 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/calculation/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/calculation/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/calculation/validate \ --header 'Content-Type: application/json' \ --data '{ "Expression": "example" }'Dry-run: binds the expression against the field’s schema and target type and returns structured errors plus the inferred calculation kind, without persisting anything. Expression syntax: calculated field expressions.
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 payload to validate a calculation expression without saving it.
object
Calculation expression to validate against the field’s schema and target type.
Examplegenerated
{ "Expression": "example"}Request payload to validate a calculation expression without saving it.
object
Calculation expression to validate against the field’s schema and target type.
Examplegenerated
{ "Expression": "example"}Request payload to validate a calculation expression without saving it.
object
Calculation expression to validate against the field’s schema and target type.
Examplegenerated
{ "Expression": "example"}Responses
Section titled “Responses”OK
object
Result of validating a calculation expression without saving it.
object
Whether the expression binds cleanly against the field’s schema and target type.
Validation errors when the expression is invalid.
One calculation expression validation error.
object
Request field the error refers to.
Localized validation message.
Stable machine-readable error code.
object
object
object
object
Example
{ "Data": { "Kind": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Result of validating a calculation expression without saving it.
object
Whether the expression binds cleanly against the field’s schema and target type.
Validation errors when the expression is invalid.
One calculation expression validation error.
object
Request field the error refers to.
Localized validation message.
Stable machine-readable error code.
object
object
object
object
Example
{ "Data": { "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
Result of validating a calculation expression without saving it.
object
Whether the expression binds cleanly against the field’s schema and target type.
Validation errors when the expression is invalid.
One calculation expression validation error.
object
Request field the error refers to.
Localized validation message.
Stable machine-readable error code.
object
object
object
object
Example
{ "Data": { "Kind": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}