Reads Definition-owned assignment configuration metadata; no Instance permissions are granted.
GET
/api/workspace/tasks/configuration/task-definitions/{taskDefinitionId}/roles-assignments
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/tasks/configuration/task-definitions/example/roles-assignments"), Headers = { { "Authorization", "Bearer <token>" }, },};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/tasks/configuration/task-definitions/example/roles-assignments';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/workspace/tasks/configuration/task-definitions/example/roles-assignments \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”taskDefinitionId
required
string
Query Parameters
Section titled “Query Parameters”access_token
string
Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
Data
object
RoleMappings
Array<object>
object
MappingId
string
WorkspaceRoleId
string
InternalRoleKey
string
RowVersion
string format: uuid
ParticipantAdmissions
Array<object>
object
AdmissionId
string
Participant
integer format: int32
SourceKind
integer format: int32
SourceId
string
Sources
Array<object>
object
SourceKind
integer format: int32
Id
string
DisplayName
string
AssignmentPolicy
object
InitialOwner
required
integer format: int32
InitialResponsible
required
integer format: int32
ChangeOwner
required
integer format: int32
ChangeResponsible
required
integer format: int32
Errors
Array<object>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Warnings
Array<object>
object
Code
required
string
Message
required
string
Target
string
Field
string
Metadata
object
key
additional properties
string
Type
integer format: int32
Severity
integer format: int32
Success
boolean
Example
{ "Data": { "ParticipantAdmissions": [ { "Participant": 0, "SourceKind": 0 } ], "Sources": [ { "SourceKind": 0 } ], "AssignmentPolicy": { "InitialOwner": 0, "InitialResponsible": 0, "ChangeOwner": 0, "ChangeResponsible": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}