Create a non-unique index for one 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/indexes"), Content = new StringContent("{ \"FieldIds\": [ \"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-definitions/example/indexes';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"FieldIds":["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-definitions/example/indexes \ --header 'Content-Type: application/json' \ --data '{ "FieldIds": [ "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 payload to create a non-unique index on the primary entity table.
object
Ordered field identifiers that define the index columns.
Examplegenerated
{ "FieldIds": [ "example" ]}Request payload to create a non-unique index on the primary entity table.
object
Ordered field identifiers that define the index columns.
Examplegenerated
{ "FieldIds": [ "example" ]}Request payload to create a non-unique index on the primary entity table.
object
Ordered field identifiers that define the index columns.
Examplegenerated
{ "FieldIds": [ "example" ]}Responses
Section titled “Responses”OK
object
Non-unique index configured for one entity definition table.
object
Index identifier.
Entity definition identifier.
Owning table identifier.
Ordered participating fields.
Field participating in one definition index.
object
Field identifier.
Owning table identifier.
Internal field key.
User-facing field name.
Concurrency token.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Non-unique index configured for one entity definition table.
object
Index identifier.
Entity definition identifier.
Owning table identifier.
Ordered participating fields.
Field participating in one definition index.
object
Field identifier.
Owning table identifier.
Internal field key.
User-facing field name.
Concurrency token.
object
object
object
object
Example
{ "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
Non-unique index configured for one entity definition table.
object
Index identifier.
Entity definition identifier.
Owning table identifier.
Ordered participating fields.
Field participating in one definition index.
object
Field identifier.
Owning table identifier.
Internal field key.
User-facing field name.
Concurrency token.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Non-unique index configured for one entity definition table.
object
Index identifier.
Entity definition identifier.
Owning table identifier.
Ordered participating fields.
Field participating in one definition index.
object
Field identifier.
Owning table identifier.
Internal field key.
User-facing field name.
Concurrency token.
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}