Skip to main content
GET
List job role subject assignments

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Query Parameters

include
enum<string>[]

A comma separated list of related resources to include.

Available options:
job_role,
user,
scheme,
work_order,
operation
filter
string
default:""

Filters the response data based on the value provided.

Available filters:

  • eq(id,xxx): Filter assignments by ID.
  • eq(organisation,xxx): Filter assignments by organisation ID.
  • eq(job_role,xxx): Filter assignments by job role ID.
  • eq(user,xxx): Filter assignments by user ID.
  • eq(subject_type,xxx): Filter assignments by subject kind. One of schemes, work-orders, operations.
  • eq(subject_id,xxx): Filter assignments by subject ID. Most useful in combination with eq(subject_type,...).

For more information on using named filters, see the docs

sort
enum<string>[]

A comma separated list of fields to sort by.

Available options:
created_at,
-created_at
limit
integer<int64>
default:100

Limit the number of resources returned by the API

Required range: x >= 1
offset
integer<int64>
default:0

Offset the resources returned by the API

Required range: x >= 0

Response

Get a list of job role subject assignments.

JSON API response object

data
A list of job role subject assignments · object[]
required

A job role subject assignment links a single user to a single job role on a single governance subject (scheme, work order, or operation). The subject is polymorphic: exactly one of scheme, work_order, or operation is populated, matching the subject_type attribute.

meta
object
required
jsonapi
object
required
included
object[]

Related resources that can be included when a job role subject assignment is returned.

An internal job role