View on GitHub

WPI User Hub

WPI User Hub

Office

Allows accessing and manipulation of offices.

GET /v1/office/{id}

Provides information about an office.

Params

Responses

POST /v1/office/

Creates a primary national office. Requires admin role.

Params

Body

Responses

GET /v1/office/me

Provides an array of the current user offices.

Params

Responses

GET /v1/office/roles

Provides a human-readable list of roles.

Responses

PUT /v1/office/{id}

Updates data for a given office.

Params

Body

Responses

PUT /v1/office/{id}/assign/{user}

Assigns an office to a given user, or vacates an office. Holder of office can use this to resign.

Params

Responses

POST /v1/office/{id}/assistant

Creates an assistant office for a given primary one.

Params

Body

Responses

DELETE /v1/office/{id}/assistant

Deletes an assistant office.

Params

Responses

GET /v1/office/verify/orgunit/{unit}

Verifies the user has a given role over an org unit.

Params

Responses

GET /v1/office/verify/user/{user}

Verifies the user has a given role over a user.

Params

Responses

GET /v1/office/verify/office/{office}

Verifies the user has a given role over an office.

Params

Responses