Skip to main content

Discipline

Disciplines define categories of work within an organisation. Each discipline has a code, name, description, and enabled state.

Discipline Object​

FieldTypeDescription
idsnowflakethe discipline's id
organisation_idsnowflakethe discipline's organisation id
codestringa short code for the discipline (up to 12 characters)
namestringthe name of the discipline (up to 200 characters)
descriptionstringa description of the discipline
enabledbooleanwhether the discipline is enabled

Get Discipline​

GET /api/disciplines/{discipline.id}

Returns the discipline object for the given discipline id. Requires membership in the organisation that owns the discipline.

Error Responses​
Status CodeDescription
400The discipline or organisation was not found
403The user is not a member of the organisation

Update Discipline​

PATCH /api/disciplines/{discipline.id}

Updates a discipline. Requires the MANAGE_ORGANISATION permission for the organisation.

All parameters for this method are optional. Only the fields provided will be updated.

Parameters​
FieldTypeDescription
codestring?a short code for the discipline (up to 12 characters)
namestring?the name of the discipline (up to 200 characters)
descriptionstring?a description of the discipline
enabledboolean?whether the discipline is enabled
Error Responses​
Status CodeDescription
400The discipline or organisation was not found
403The user lacks the MANAGE_ORGANISATION permission

List Disciplines​

GET /organisations/{organisation.id}/disciplines

Returns an array of discipline objects for the organisation. Requires membership in the organisation.

Error Responses​
Status CodeDescription
400The organisation was not found
403The user is not a member of the organisation

Create Discipline​

POST /organisations/{organisation.id}/disciplines

Creates a new discipline in the organisation. Requires the MANAGE_ORGANISATION permission. Returns the created discipline object.

Parameters​
FieldTypeDescription
codestring?a short code for the discipline (up to 12 characters)
namestring?the name of the discipline (up to 200 characters)
descriptionstring?a description of the discipline
Notes​
  • New disciplines are created with enabled set to true by default.
Error Responses​
Status CodeDescription
400The organisation was not found
403The user lacks the MANAGE_ORGANISATION permission