# Create User Group **POST /user-groups** This API call is used to create a new user group. ### Name Collisions If you try to create a user group with a name that is already associated with another user group, the operation will fail and return an HTTP status code 400 (Bad Request). ## Servers - Sandbox server URL: https://localhost:8080 (Sandbox server URL) ## Authentication methods - Bearer auth ## Parameters ### Body: application/json (object) - **name** (string) Name of user group. - **description** (string) Description of user group. - **userGroupType** (string) - **locationId** (string) The location code value. - **departmentId** (string) The department code value. - **defaultUser** (string) Username of default user of user group. - **users** (array[string]) List of usernames to add to user group. ## Responses ### 200 Success Response #### Body: application/json (object) - **id** (integer) Unique identifier of user group - **name** (string) Name of user group. - **status** (string) Status of user group processing. - **message** (string) Status message of user group processing. ### 400 Failed Response #### Body: application/json (object) - **id** (integer) Unique identifier of user group - **name** (string) Name of user group. - **status** (string) Status of user group processing. - **message** (string) Status message of user group processing. ### 401 Authentication Error. Invalid credentials. #### Body: application/json (object) - **code** (string) - **message** (string) - **description** (string) ### 403 Authorization Error. Invalid role for request. [Powered by Bump.sh](https://bump.sh)