Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

TeamCity Users API

Manage users and user groups

TeamCity Users API is one of 17 APIs that TeamCity publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Users. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, a JSON-LD context, and 1 JSON Schema.

This API exposes 5 operations across 2 paths, and defines 6 schemas. It is described by OpenAPI 3.0.3, at version 2024.12.1.

Requests are made against a single base URL, https://{server}/app/rest.

5 operations 2 paths 6 schemas 1 DELETE2 GET1 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
2024.12.1
Base URL
https://teamcity.example.com/app/rest
Authentication
HTTP Bearer, HTTP Basic
Contact
Resource Areas
1

Authentication & Security 2

TeamCity Users API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). It accepts HTTP basic authentication (basicAuth). By default, every request must be authenticated.

  • bearerAuth — Bearer token authentication using access tokens
  • basicAuth — HTTP Basic authentication with username and password

Paths & Operations 5

Across 2 paths, the API surfaces 5 operations — 1 DELETE, 2 GET, 1 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

Users 5

Manage users and user groups

GET
/users
Get All Users
getAllUsers 1 param → 200
POST
/users
Create User
createUser body → 200
GET
/users/{userLocator}
Get User
getUser 2 params → 200
PUT
/users/{userLocator}
Update User
updateUser 1 param body → 200
DELETE
/users/{userLocator}
Delete User
deleteUser 1 param → 204

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are User (8 properties), Group (5 properties), Role (3 properties), Users (2 properties). Each schema is shown below with its type and property counts.

User
object
8 properties
Role
object
3 properties
Group
object
5 properties
Groups
object
2 properties
Roles
object
1 property
Users
object
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

teamcity-users-api-openapi.yml Raw ↑

Other APIs TeamCity publishes across the network.

TeamCity Agent Pools API
TeamCity Agents API
TeamCity Audit API
TeamCity Build Configurations API
TeamCity Build Queue API
TeamCity Builds API
TeamCity Changes API
TeamCity Cloud API
TeamCity Investigations API
TeamCity Mutes API
TeamCity Problems API
TeamCity Projects API