users
Vesta API · 6.0.75 · Community
GET/api/v1/usersList Users
List all users (admin only)
Parameters
skip · query · Optional
{
"default": 0,
"minimum": 0,
"title": "Skip",
"type": "integer"
}limit · query · Optional
Clamped to 100 per page
{
"default": 50,
"description": "Clamped to 100 per page",
"minimum": 1,
"title": "Limit",
"type": "integer"
}Authentication
Responses
200
Successful Response
application/json
Schema
{
"additionalProperties": false,
"properties": {
"has_more": {
"type": "boolean"
},
"items": {
"items": {
"additionalProperties": false,
"properties": {
"auth_source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"created_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"full_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"id": {
"type": "string"
},
"is_active": {
"type": "boolean"
},
"last_login": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"oidc_issuer": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"oidc_subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"org_id": {
"type": "string"
},
"role": {
"type": "string"
},
"role_source": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"username": {
"type": "string"
}
},
"required": [
"email",
"full_name",
"auth_source",
"role_source",
"oidc_subject",
"oidc_issuer",
"id",
"username",
"org_id",
"role",
"is_active",
"last_login",
"created_at"
],
"type": "object"
},
"type": "array"
},
"limit": {
"type": "integer"
},
"skip": {
"type": "integer"
},
"total": {
"type": "integer"
}
},
"required": [
"items",
"total",
"skip",
"limit",
"has_more"
],
"type": "object"
}422
Validation Error
application/json
Schema
POST/api/v1/usersCreate User
Create a new user (admin only)
Request body
Required
application/json
Schema
Authentication
Responses
201
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
DELETE/api/v1/users/{user_id}Delete User
Delete user (admin only)
Parameters
user_id · path · Required
{
"title": "User Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
GET/api/v1/users/{user_id}Get User
Get user details (admin only)
Parameters
user_id · path · Required
{
"title": "User Id",
"type": "string"
}Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json
Schema
PUT/api/v1/users/{user_id}Update User
Update user (admin only)
Parameters
user_id · path · Required
{
"title": "User Id",
"type": "string"
}Request body
Required
application/json
Schema
Authentication
Responses
200
Successful Response
application/json
Schema
{}422
Validation Error
application/json