ThaiProps User Types API
The User Types API from ThaiProps — 4 operation(s) for user types.
The User Types API from ThaiProps — 4 operation(s) for user types.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/thaiprops-com:thaiprops-com-user-types-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ThaiProps Admin User Types API
version: 0.1.0
tags:
- name: User Types
paths:
/admin/user-types:
get:
tags:
- User Types
summary: List User Types
operationId: list_user_types_admin_user_types_get
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
post:
tags:
- User Types
summary: Create User Type
operationId: create_user_type_admin_user_types_post
parameters:
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserTypeCreate'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/user-types/user-map:
get:
tags:
- User Types
summary: User Type Map
operationId: user_type_map_admin_user_types_user_map_get
parameters:
- name: user_ids
in: query
required: false
schema:
type: string
default: ''
title: User Ids
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/user-types/users/{user_id}:
get:
tags:
- User Types
summary: Get User Type Assignment
operationId: get_user_type_assignment_admin_user_types_users__user_id__get
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
put:
tags:
- User Types
summary: Assign User Type
operationId: assign_user_type_admin_user_types_users__user_id__put
parameters:
- name: user_id
in: path
required: true
schema:
type: integer
title: User Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserTypeAssignment'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/admin/user-types/{type_id}:
get:
tags:
- User Types
summary: Get User Type
operationId: get_user_type_admin_user_types__type_id__get
parameters:
- name: type_id
in: path
required: true
schema:
type: integer
title: Type Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- User Types
summary: Update User Type
operationId: update_user_type_admin_user_types__type_id__patch
parameters:
- name: type_id
in: path
required: true
schema:
type: integer
title: Type Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UserTypeUpdate'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- User Types
summary: Disable User Type
operationId: disable_user_type_admin_user_types__type_id__delete
parameters:
- name: type_id
in: path
required: true
schema:
type: integer
title: Type Id
- name: authorization
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Authorization
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
UserTypeCreate:
properties:
name:
type: string
title: Name
base_role:
type: string
title: Base Role
description:
anyOf:
- type: string
- type: 'null'
title: Description
permissions:
additionalProperties: true
type: object
title: Permissions
access_policies:
additionalProperties:
type: string
type: object
title: Access Policies
is_active:
type: boolean
title: Is Active
default: true
type: object
required:
- name
- base_role
title: UserTypeCreate
UserTypeUpdate:
properties:
name:
anyOf:
- type: string
- type: 'null'
title: Name
base_role:
anyOf:
- type: string
- type: 'null'
title: Base Role
description:
anyOf:
- type: string
- type: 'null'
title: Description
permissions:
anyOf:
- additionalProperties: true
type: object
- type: 'null'
title: Permissions
access_policies:
anyOf:
- additionalProperties:
type: string
type: object
- type: 'null'
title: Access Policies
is_active:
anyOf:
- type: boolean
- type: 'null'
title: Is Active
type: object
title: UserTypeUpdate
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
UserTypeAssignment:
properties:
user_type_id:
type: integer
title: User Type Id
type: object
required:
- user_type_id
title: UserTypeAssignment
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError