Query subjects that the current actor may assign to one Entity responsibility.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/entity/example/instances/example/responsibilities/example/eligible-targets/query"), Content = new StringContent("{ \"Resource\": { \"ResourceModule\": \"example\", \"ResourceKind\": \"example\", \"ContextResourceId\": \"example\", \"ResourceObjectId\": \"example\" }, \"ResponsibilityKey\": \"example\", \"Action\": \"example\", \"Search\": \"example\", \"Cursor\": \"example\", \"PageSize\": 1 }") { 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/entity/example/instances/example/responsibilities/example/eligible-targets/query';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Resource":{"ResourceModule":"example","ResourceKind":"example","ContextResourceId":"example","ResourceObjectId":"example"},"ResponsibilityKey":"example","Action":"example","Search":"example","Cursor":"example","PageSize":1}'};
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/entity/example/instances/example/responsibilities/example/eligible-targets/query \ --header 'Content-Type: application/json' \ --data '{ "Resource": { "ResourceModule": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" }, "ResponsibilityKey": "example", "Action": "example", "Search": "example", "Cursor": "example", "PageSize": 1 }'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”Queries eligible responsibility targets.
object
Identifies one runtime resource.
object
Examplegenerated
{ "Resource": { "ResourceModule": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" }, "ResponsibilityKey": "example", "Action": "example", "Search": "example", "Cursor": "example", "PageSize": 1}Queries eligible responsibility targets.
object
Identifies one runtime resource.
object
Examplegenerated
{ "Resource": { "ResourceModule": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" }, "ResponsibilityKey": "example", "Action": "example", "Search": "example", "Cursor": "example", "PageSize": 1}Queries eligible responsibility targets.
object
Identifies one runtime resource.
object
Examplegenerated
{ "Resource": { "ResourceModule": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" }, "ResponsibilityKey": "example", "Action": "example", "Search": "example", "Cursor": "example", "PageSize": 1}Responses
Section titled “Responses”OK
object
Returns one page of eligible responsibility targets.
object
Describes one eligible responsibility target.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Returns one page of eligible responsibility targets.
object
Describes one eligible responsibility target.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Returns one page of eligible responsibility targets.
object
Describes one eligible responsibility target.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
Returns one page of eligible responsibility targets.
object
Describes one eligible responsibility target.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}