Create or replace disabled Reference Eligibility metadata for one Reference field.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/admin/entity-fields/example/reference-eligibility"), Content = new StringContent("{ \"Expression\": \"example\", \"Message\": \"example\", \"MessageTranslations\": { \"additionalProperty\": \"example\" }, \"Enabled\": true, \"RowVersion\": \"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0\" }") { 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';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"Expression":"example","Message":"example","MessageTranslations":{"additionalProperty":"example"},"Enabled":true,"RowVersion":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/admin/entity-fields/example/reference-eligibility \ --header 'Content-Type: application/json' \ --data '{ "Expression": "example", "Message": "example", "MessageTranslations": { "additionalProperty": "example" }, "Enabled": true, "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'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 create or replace field-owned Reference Eligibility metadata.
object
Expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Requested runtime state.
Expected row version when replacing an existing rule.
Examplegenerated
{ "Expression": "example", "Message": "example", "MessageTranslations": { "additionalProperty": "example" }, "Enabled": true, "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Request to create or replace field-owned Reference Eligibility metadata.
object
Expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Requested runtime state.
Expected row version when replacing an existing rule.
Examplegenerated
{ "Expression": "example", "Message": "example", "MessageTranslations": { "additionalProperty": "example" }, "Enabled": true, "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Request to create or replace field-owned Reference Eligibility metadata.
object
Expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Requested runtime state.
Expected row version when replacing an existing rule.
Examplegenerated
{ "Expression": "example", "Message": "example", "MessageTranslations": { "additionalProperty": "example" }, "Enabled": true, "RowVersion": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”OK
object
Field-owned Reference Eligibility configuration.
object
Stable rule identifier.
Identifier of the source entity definition.
Identifier of the dependent Reference field.
Eligibility expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Whether the rule participates in runtime enforcement.
Owning Net Package identifier when package-owned.
Owning package artifact identifier when package-owned.
Stable source identifier when package-owned.
Optimistic concurrency token.
Compiler-owned dependency summary.
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": { "SchemaSource": 0, "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Field-owned Reference Eligibility configuration.
object
Stable rule identifier.
Identifier of the source entity definition.
Identifier of the dependent Reference field.
Eligibility expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Whether the rule participates in runtime enforcement.
Owning Net Package identifier when package-owned.
Owning package artifact identifier when package-owned.
Stable source identifier when package-owned.
Optimistic concurrency token.
Compiler-owned dependency summary.
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": { "SchemaSource": 0, "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
Field-owned Reference Eligibility configuration.
object
Stable rule identifier.
Identifier of the source entity definition.
Identifier of the dependent Reference field.
Eligibility expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Whether the rule participates in runtime enforcement.
Owning Net Package identifier when package-owned.
Owning package artifact identifier when package-owned.
Stable source identifier when package-owned.
Optimistic concurrency token.
Compiler-owned dependency summary.
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": { "SchemaSource": 0, "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Field-owned Reference Eligibility configuration.
object
Stable rule identifier.
Identifier of the source entity definition.
Identifier of the dependent Reference field.
Eligibility expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Whether the rule participates in runtime enforcement.
Owning Net Package identifier when package-owned.
Owning package artifact identifier when package-owned.
Stable source identifier when package-owned.
Optimistic concurrency token.
Compiler-owned dependency summary.
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": { "SchemaSource": 0, "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
Field-owned Reference Eligibility configuration.
object
Stable rule identifier.
Identifier of the source entity definition.
Identifier of the dependent Reference field.
Eligibility expression authored against Current and Candidate.
Optional default failure message.
Optional localized failure messages keyed by supported locale.
object
Whether the rule participates in runtime enforcement.
Owning Net Package identifier when package-owned.
Owning package artifact identifier when package-owned.
Stable source identifier when package-owned.
Optimistic concurrency token.
Compiler-owned dependency summary.
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": { "SchemaSource": 0, "Dependencies": [ { "Kind": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}