Users

Users endpoints of the bizSupply API.

Last updated: 2026-07-21

GET /api/v1/users

List users within the current tenant (OWNER or ADMIN only).

Parameters

NameInRequiredDescription
pageablequeryyes

Responses

StatusDescription
200Paginated list of users
403Insufficient role

POST /api/v1/users

Create a new user within the current tenant (OWNER or ADMIN only).

Request body

  • application/jsonCreateUserRequest

Responses

StatusDescription
200Created user profile
400Invalid request body
403Insufficient role

GET /api/v1/users/me

Get the current authenticated user's profile.

Responses

StatusDescription
200User profile
401Authentication required

PUT /api/v1/users/me

Update the current authenticated user's profile.

Request body

  • application/jsonUserUpdateRequest

Responses

StatusDescription
200Updated user profile
400Invalid request body
401Authentication required

GET /api/v1/users/me/organizations

List the current user's organization memberships.

Responses

StatusDescription
200List of memberships
401Authentication required

GET /api/v1/users/{id}

Get a user by ID within the current tenant.

Parameters

NameInRequiredDescription
idpathyesUser UUID.

Responses

StatusDescription
200User profile
403Insufficient role
404User not found in this tenant

PUT /api/v1/users/{id}

Update a user by ID (OWNER or ADMIN only).

Parameters

NameInRequiredDescription
idpathyesUser UUID.

Request body

  • application/jsonUpdateUserRequest

Responses

StatusDescription
200Updated user profile
403Insufficient role
404User not found

DELETE /api/v1/users/{id}

Soft-delete a user by ID (OWNER or ADMIN only).

Parameters

NameInRequiredDescription
idpathyesUser UUID.

Responses

StatusDescription
204User deleted
403Insufficient role
404User not found

POST /api/v1/users/{id}/restore

Restore a soft-deleted user (SYSTEM_ADMIN only).

Parameters

NameInRequiredDescription
idpathyesUser UUID.

Responses

StatusDescription
200User restored
403Insufficient role
404User not found