GET /api/organisationalfunctions

Description

Returns list of organisation’s functions

Parameters

organisation_id

Integer.  Optional. Username of person. If not given, will return positions for logged in person.

role_meta_types

String. Optional. Specify one or more role meta types to list, can be one of or combination of: role, specialrole or position. Example: role_meta_type=role fetches roles only, role_meta_type=role,specialrole fetches both roles and specialroles.

fields

String. Optional. See Field customization.

Return

Array of OrganisationalFunction objects.

Security

Superuser, person’s manager and self

Examples:

https://servername/api/roles?role_meta_types=role

Returns a list of roles of meta type 'role' for currently logged in user

https://servername/api/roles?role_meta_types=role&user_name=pe@snapper.no

Returns a list of roles of meta type 'role' for user with user name 'pe@snapper.no'.

PUT /api/organisationalfunctions/[organisationalfunction_id]

Description

Update details about the OrganisationalFunction

Parameters

organisationalfunctions_id

Integer. Id of the OrganisationalFunction to update

action

String. ”off”/”update”. Action to take. ”off” signs person off event.

fields

String. Optional. See Field customization.

Return

Array of one OrganisationalFunction object.

Security

Superuser, manager, self