Skip to main content
POST
Create a new job role subject assignment

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

Body

application/vnd.api+json

The job role subject assignment to create. Exactly one of scheme, work_order, or operation must be provided in relationships. The populated relationship key is mapped from the subject_type attribute (schemes -> scheme, work-orders -> work_order, operations -> operation).

data
object
required

Scheme-subject variant. Forbids work_order / operation relationships so the payload cannot validate two subjects at once.

Response

Job role subject assignment created successfully.

JSON API response object

data
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.

jsonapi
object
required
included
object[]

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

An internal job role