openapi: 3.0.3 info: title: TeamCity REST Agent Pools User Groups API description: The TeamCity REST API provides programmatic access to JetBrains TeamCity continuous integration and deployment server. It allows you to manage projects, build configurations, builds, agents, users, VCS roots, changes, tests, and other TeamCity resources. version: 2024.12.1 contact: name: JetBrains url: https://www.jetbrains.com/support/teamcity/ email: teamcity-support@jetbrains.com license: name: Proprietary url: https://www.jetbrains.com/teamcity/buy/ x-logo: url: https://www.jetbrains.com/teamcity/img/teamcity-logo.svg servers: - url: https://{server}/app/rest description: TeamCity Server variables: server: default: teamcity.example.com description: Your TeamCity server hostname security: - bearerAuth: [] - basicAuth: [] tags: - name: User Groups description: Manage user groups paths: /userGroups: get: operationId: getAllUserGroups summary: Get All User Groups description: Returns a list of all user groups. tags: - User Groups parameters: - $ref: '#/components/parameters/fields' responses: '200': description: Successful response content: application/json: schema: $ref: '#/components/schemas/Groups' post: operationId: createUserGroup summary: Create User Group description: Creates a new user group. tags: - User Groups requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Group' responses: '200': description: Group created successfully content: application/json: schema: $ref: '#/components/schemas/Group' components: parameters: fields: name: fields in: query description: Fields to include in the response (for partial responses) schema: type: string schemas: Role: type: object properties: roleId: type: string scope: type: string href: type: string Group: type: object properties: key: type: string description: Group key name: type: string description: Group display name description: type: string href: type: string roles: $ref: '#/components/schemas/Roles' Groups: type: object properties: count: type: integer group: type: array items: $ref: '#/components/schemas/Group' Roles: type: object properties: role: type: array items: $ref: '#/components/schemas/Role' securitySchemes: bearerAuth: type: http scheme: bearer description: Bearer token authentication using access tokens basicAuth: type: http scheme: basic description: HTTP Basic authentication with username and password externalDocs: description: TeamCity REST API Documentation url: https://www.jetbrains.com/help/teamcity/rest-api.html