Create one statement for an entity definition.
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-definitions/example/statements"), Content = new StringContent("{ \"Name\": \"example\", \"DisplayName\": \"example\", \"Expression\": \"example\", \"ExposeInClient\": true }") { 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-definitions/example/statements';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Name":"example","DisplayName":"example","Expression":"example","ExposeInClient":true}'};
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-definitions/example/statements \ --header 'Content-Type: application/json' \ --data '{ "Name": "example", "DisplayName": "example", "Expression": "example", "ExposeInClient": true }'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”Create one entity statement.
object
Stable technical statement key.
User-facing statement label.
SQL-like statement expression.
Whether runtime payloads expose this statement.
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Expression": "example", "ExposeInClient": true}Create one entity statement.
object
Stable technical statement key.
User-facing statement label.
SQL-like statement expression.
Whether runtime payloads expose this statement.
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Expression": "example", "ExposeInClient": true}Create one entity statement.
object
Stable technical statement key.
User-facing statement label.
SQL-like statement expression.
Whether runtime payloads expose this statement.
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Expression": "example", "ExposeInClient": true}Responses
Section titled “Responses”OK
object
Administrative entity statement definition.
object
Statement identifier.
Owning entity definition identifier.
Stable technical statement key.
User-facing statement label.
Stored SQL-like statement expression.
Whether runtime payloads expose this statement as a predicate flag.
Statement ordering inside the entity definition.
Whether the statement is soft-deleted.
Soft-delete timestamp when deleted.
Concurrency token.
Stable NET package root id when package-owned.
NET package artifact id when package-owned.
Stable Moltaro id when package-owned.
object
object
object
object
Example
{ "Data": { "SchemaSource": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Administrative entity statement definition.
object
Statement identifier.
Owning entity definition identifier.
Stable technical statement key.
User-facing statement label.
Stored SQL-like statement expression.
Whether runtime payloads expose this statement as a predicate flag.
Statement ordering inside the entity definition.
Whether the statement is soft-deleted.
Soft-delete timestamp when deleted.
Concurrency token.
Stable NET package root id when package-owned.
NET package artifact id when package-owned.
Stable Moltaro id when package-owned.
object
object
object
object
Example
{ "Data": { "SchemaSource": 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
Administrative entity statement definition.
object
Statement identifier.
Owning entity definition identifier.
Stable technical statement key.
User-facing statement label.
Stored SQL-like statement expression.
Whether runtime payloads expose this statement as a predicate flag.
Statement ordering inside the entity definition.
Whether the statement is soft-deleted.
Soft-delete timestamp when deleted.
Concurrency token.
Stable NET package root id when package-owned.
NET package artifact id when package-owned.
Stable Moltaro id when package-owned.
object
object
object
object
Example
{ "Data": { "SchemaSource": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Administrative entity statement definition.
object
Statement identifier.
Owning entity definition identifier.
Stable technical statement key.
User-facing statement label.
Stored SQL-like statement expression.
Whether runtime payloads expose this statement as a predicate flag.
Statement ordering inside the entity definition.
Whether the statement is soft-deleted.
Soft-delete timestamp when deleted.
Concurrency token.
Stable NET package root id when package-owned.
NET package artifact id when package-owned.
Stable Moltaro id when package-owned.
object
object
object
object
Example
{ "Data": { "SchemaSource": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}