mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
get:
|
|
description: Retrieve a single user by unique identifier.
|
|
operationId: getUser
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/components/parameters/Fields'
|
|
- $ref: '../../openapi.yaml#/components/parameters/Meta'
|
|
responses:
|
|
'200':
|
|
description: Successful request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: '../../openapi.yaml#/components/schemas/User'
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Users
|
|
patch:
|
|
description: Update an existing user
|
|
operationId: updateUser
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/components/parameters/Fields'
|
|
- $ref: '../../openapi.yaml#/components/parameters/Meta'
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../openapi.yaml#/components/schemas/User'
|
|
responses:
|
|
'200':
|
|
content:
|
|
application/json:
|
|
schema:
|
|
properties:
|
|
data:
|
|
type: object
|
|
type: object
|
|
description: Successful request
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Users
|
|
delete:
|
|
description: Delete an existing user
|
|
operationId: deleteUser
|
|
responses:
|
|
'200':
|
|
description: Successful request
|
|
'401':
|
|
$ref: '../../openapi.yaml#/components/responses/UnauthorizedError'
|
|
'404':
|
|
$ref: '../../openapi.yaml#/components/responses/NotFoundError'
|
|
tags:
|
|
- Users
|
|
parameters:
|
|
- $ref: '../../openapi.yaml#/components/parameters/UUId' |