Organizations
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/organizations HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Accept: */*
[
{
"id": 1,
"name": "text",
"description": "text",
"is_active": true,
"created_at": "2026-01-01T00:00:00.000Z",
"user": 1,
"usernames": [
{
"id": 1,
"username": "text",
"firstname": "text",
"lastname": "text",
"email": "text",
"role": "text"
}
]
}
]Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
POST /api/v1/organizations HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"name": "text",
"description": "text"
}{
"id": 1,
"name": "text",
"description": "text",
"is_active": true,
"created_at": "2026-01-01T00:00:00.000Z",
"user": 1,
"usernames": [
{
"id": 1,
"username": "text",
"firstname": "text",
"lastname": "text",
"email": "text",
"role": "text"
}
]
}Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
PUT /api/v1/organizations/{org_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 53
{
"name": "text",
"description": "text",
"is_active": true
}{
"id": 1,
"name": "text",
"description": "text",
"is_active": true,
"created_at": "2026-01-01T00:00:00.000Z",
"user": 1,
"usernames": [
{
"id": 1,
"username": "text",
"firstname": "text",
"lastname": "text",
"email": "text",
"role": "text"
}
]
}Hard delete - permanently delete an organization. Fails if users are associated.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
DELETE /api/v1/organizations/{org_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Accept: */*
No content
List all users assigned to an organization.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
GET /api/v1/organizations/{org_id}/users HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Accept: */*
No content
Assign one or more users to an organization. Replaces their current org assignment.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
PATCH /api/v1/organizations/{org_id}/users HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"usernames": [
"text"
]
}{
"assigned": [
"text"
],
"not_found": [
"text"
]
}Soft delete - deactivate an organization.
Enter your JWT token (without 'Bearer ' prefix)
Successful Response
Validation Error
PATCH /api/v1/organizations/{org_id}/deactivate HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
authorization: text
Accept: */*
No content
Last updated
