Skip to content

List assignment targets.

GET
/api/workspace/entity/{entityIdOrKey}/instances/{instanceId}/assignments/{relationDefinitionId}/targets
curl --request GET \
--url https://example.com/api/workspace/entity/example/instances/example/assignments/example/targets

Returns server-approved assignment target options for one relation slot on one active entity instance. The caller must hold explicit assignment authority for the addressed relation slot.

  • None
entityIdOrKey
required
string

Entity definition identifier or normalized entity key.

instanceId
required
string

Entity instance identifier.

relationDefinitionId
required
string

Relation definition identifier for the assignment slot.

access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

OK

Media typeapplication/json
object
Data

Server-approved assignment target options for one record relation slot.

object
Relation

Runtime relation slot metadata for record-scoped assignments.

object
Id

Relation definition identifier.

string
nullable
Key

Relation definition key.

string
nullable
DisplayName

Relation display name.

string
nullable
Cardinality
integer format: int32
Allowed values: 0 1
IsRequired

Whether the relation must keep at least one assignment.

boolean
SubjectMode
integer format: int32
Allowed values: 0 1 2
SortOrder

Relation display order.

integer format: int32
Permissions

Server-computed mutation permissions for one relation slot on one entity instance.

object
CanUpdate

Whether the caller can replace the assignment set for the relation slot.

boolean
Targets

Eligible assignment target options.

Array<object>
nullable

Server-approved assignment target option for one relation slot.

object
SubjectType
integer format: int32
Allowed values: 0 1
SubjectId

Assignment subject identifier.

string
nullable
DisplayName

Display name shown by assignment pickers.

string
nullable
Description

Optional secondary description.

string
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Relation": {
"Cardinality": 0,
"SubjectMode": 0
},
"Targets": [
{
"SubjectType": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
Data

Server-approved assignment target options for one record relation slot.

object
Relation

Runtime relation slot metadata for record-scoped assignments.

object
Id

Relation definition identifier.

string
nullable
Key

Relation definition key.

string
nullable
DisplayName

Relation display name.

string
nullable
Cardinality
integer format: int32
Allowed values: 0 1
IsRequired

Whether the relation must keep at least one assignment.

boolean
SubjectMode
integer format: int32
Allowed values: 0 1 2
SortOrder

Relation display order.

integer format: int32
Permissions

Server-computed mutation permissions for one relation slot on one entity instance.

object
CanUpdate

Whether the caller can replace the assignment set for the relation slot.

boolean
Targets

Eligible assignment target options.

Array<object>
nullable

Server-approved assignment target option for one relation slot.

object
SubjectType
integer format: int32
Allowed values: 0 1
SubjectId

Assignment subject identifier.

string
nullable
DisplayName

Display name shown by assignment pickers.

string
nullable
Description

Optional secondary description.

string
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Relation": {
"Cardinality": 0,
"SubjectMode": 0
},
"Targets": [
{
"SubjectType": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Conflict

Media typeapplication/json
object
Data

Server-approved assignment target options for one record relation slot.

object
Relation

Runtime relation slot metadata for record-scoped assignments.

object
Id

Relation definition identifier.

string
nullable
Key

Relation definition key.

string
nullable
DisplayName

Relation display name.

string
nullable
Cardinality
integer format: int32
Allowed values: 0 1
IsRequired

Whether the relation must keep at least one assignment.

boolean
SubjectMode
integer format: int32
Allowed values: 0 1 2
SortOrder

Relation display order.

integer format: int32
Permissions

Server-computed mutation permissions for one relation slot on one entity instance.

object
CanUpdate

Whether the caller can replace the assignment set for the relation slot.

boolean
Targets

Eligible assignment target options.

Array<object>
nullable

Server-approved assignment target option for one relation slot.

object
SubjectType
integer format: int32
Allowed values: 0 1
SubjectId

Assignment subject identifier.

string
nullable
DisplayName

Display name shown by assignment pickers.

string
nullable
Description

Optional secondary description.

string
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"Relation": {
"Cardinality": 0,
"SubjectMode": 0
},
"Targets": [
{
"SubjectType": 0
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}