User Management API
The goal of the user management API is to allow authenticated users with appropriate permissions to manage new and existing users.
Last updated
The goal of the user management API is to allow authenticated users with appropriate permissions to manage new and existing users.
Last updated
GET
/users/
This endpoint allows you to get a list of users.
Authentication
string
Authentication token from Cognito
GET
/users/:id
This endpoint allows you to get a user's details.
id
string
User Cognito ID
Authenticaion
string
Authentication token from Cognito
POST
/users/
This endpoint allows you to create a new user. *Requires admin role
Authentication
string
Authentication token from Cognito
date_added
string
An iso date to be provided if you want to override the date the user was created. ISO format: "YYYY-MM-DD HH-MM-SS"
string
The users email address. Min. length: 8, max. length: 128
first_name
string
The first name of the user. Only alphanumeric characters, white spaces and hyphens. Min. Length: 1, Max Length: 128
last_name
string
The last name of the user. Only alphanumeric characters, white spaces and hyphens. Min. Length: 1, Max Length: 128
is_coa_staff
boolean
True if the user is part of the City of Austin, False otherwise. If this field is not provided, this is automatically set to True if the email ends with "@austintexas.gov"
status_id
integer
The status of the user, 0 for inactive, 1 for active.
title
string
The job position title of the user.
workgroup
string
The workgroup name. Not empty, min length: 3, max length: 128. Allowed characters: a-z, A-Z, 0-9, and any of these special characters: _-!@%^~?.:&()[]$
workgroup_id
integer
The workgroup_id in the moped_workgroup table in the database.
password
string
The new user's password. Allowed characters: a-z, A-Z, 0-9, and any of these special characters: _-!@%^~?.:&()[]$
roles
array
Array of strings, must be at least one value. It must be at least one of these values: "moped-admin", "moped-editor" or "moped-viewer"
PUT
/users/:id
This endpoint allows you to create a new user. *Requires admin role
id
string
Cognito ID (UUID) of the user to be updated.
Authentication
string
Authentication token from Cognito
date_added
string
An iso date to be provided if you want to override the date the user was created. ISO format: "YYYY-MM-DD HH-MM-SS"
string
The users email address. Min. length: 8, max. length: 128
first_name
string
The first name of the user. Only alphanumeric characters, white spaces and hyphens. Min. Length: 1, Max Length: 128
last_name
string
The last name of the user. Only alphanumeric characters, white spaces and hyphens. Min. Length: 1, Max Length: 128
is_coa_staff
boolean
True if the user is part of the City of Austin, False otherwise. If this field is not provided, this is automatically set to True if the email ends with "@austintexas.gov"
status_id
integer
The status of the user, 0 for inactive, 1 for active.
title
string
The job position title of the user.
workgroup
string
The workgroup name. Not empty, min length: 3, max length: 128. Allowed characters: a-z, A-Z, 0-9, and any of these special characters: _-!@%^~?.:&()[]$
workgroup_id
integer
The workgroup_id in the moped_workgroup table in the database.
password
string
The new user's password. Allowed characters: a-z, A-Z, 0-9, and any of these special characters: _-!@%^~?.:&()[]$
roles
array
Array of strings, must be at least one value. It must be at least one of these values: "moped-admin", "moped-editor" or "moped-viewer"
DELETE
/users/:id
This endpoint allows you to delete a user. *Requires admin role
id
string
User Cognito ID
Authentication
string
Authentication token from Cognito
PUT
/users/:id/password
id
string
User Cognito ID
Authentication
string
Authentication token from Cognito
password
string
The new user's password. Allowed characters: a-z, A-Z, 0-9, and any of these special characters: _-!@%^~?.:&()[]$