Create a draft Board Constraint.
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/boards/boards/example/constraints"), Content = new StringContent("{ \"Name\": \"example\", \"DisplayName\": \"example\", \"Description\": \"example\", \"FailureMessage\": \"example\", \"IsEnabled\": 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/boards/boards/example/constraints';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Name":"example","DisplayName":"example","Description":"example","FailureMessage":"example","IsEnabled":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/boards/boards/example/constraints \ --header 'Content-Type: application/json' \ --data '{ "Name": "example", "DisplayName": "example", "Description": "example", "FailureMessage": "example", "IsEnabled": 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 a draft Board Constraint.
object
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Description": "example", "FailureMessage": "example", "IsEnabled": true}Create a draft Board Constraint.
object
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Description": "example", "FailureMessage": "example", "IsEnabled": true}Create a draft Board Constraint.
object
Examplegenerated
{ "Name": "example", "DisplayName": "example", "Description": "example", "FailureMessage": "example", "IsEnabled": true}Responses
Section titled “Responses”OK
object
One Board Constraint and its ordered applicability bindings.
object
Activation health aggregated for one Board Constraint.
object
One safe localized Board Constraint configuration issue.
object
One Board Constraint trigger and Statement-set binding.
object
Activation health for one Board Constraint Binding.
object
One safe localized Board Constraint configuration issue.
object
One ordered Board Statement selected by a constraint binding.
object
object
object
object
object
Example
{ "Data": { "Bindings": [ { "TriggerType": 0, "EvaluatorType": 0, "LogicalOperator": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
One Board Constraint and its ordered applicability bindings.
object
Activation health aggregated for one Board Constraint.
object
One safe localized Board Constraint configuration issue.
object
One Board Constraint trigger and Statement-set binding.
object
Activation health for one Board Constraint Binding.
object
One safe localized Board Constraint configuration issue.
object
One ordered Board Statement selected by a constraint binding.
object
object
object
object
object
Example
{ "Data": { "Bindings": [ { "TriggerType": 0, "EvaluatorType": 0, "LogicalOperator": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Conflict
object
One Board Constraint and its ordered applicability bindings.
object
Activation health aggregated for one Board Constraint.
object
One safe localized Board Constraint configuration issue.
object
One Board Constraint trigger and Statement-set binding.
object
Activation health for one Board Constraint Binding.
object
One safe localized Board Constraint configuration issue.
object
One ordered Board Statement selected by a constraint binding.
object
object
object
object
object
Example
{ "Data": { "Bindings": [ { "TriggerType": 0, "EvaluatorType": 0, "LogicalOperator": 0 } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}