Files
directus/packages/spec/specs/paths/settings/setting.yaml
2020-10-11 18:31:14 -04:00

69 lines
1.7 KiB
YAML

get:
description: Retrieve a single setting by unique identifier.
operationId: getSetting
parameters:
- $ref: "../../#/components/parameters/Meta"
responses:
"200":
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: "../../#/components/schemas/Setting"
"401":
$ref: "../../#/components/responses/UnauthorizedError"
"404":
$ref: "../../#/components/responses/NotFoundError"
tags:
- Settings
patch:
description: Update an existing setting
operationId: updateSetting
parameters:
- $ref: "../../#/components/parameters/Meta"
requestBody:
content:
application/json:
schema:
properties:
key:
description: Key for the setting
type: string
value:
description: Value for the setting
type: string
type: object
responses:
"200":
description: Successful request
content:
application/json:
schema:
type: object
properties:
data:
$ref: "../../#/components/schemas/Setting"
"401":
$ref: "../../#/components/responses/UnauthorizedError"
"404":
$ref: "../../#/components/responses/NotFoundError"
tags:
- Settings
delete:
description: Delete an existing setting
operationId: deleteSetting
responses:
"200":
description: Successful request
"401":
$ref: "../../#/components/responses/UnauthorizedError"
"404":
$ref: "../../#/components/responses/NotFoundError"
tags:
- Settings
parameters:
- $ref: "../../#/components/parameters/Id"