docs: document System Name PUT endpoint and validation fields in OpenAPI
This commit is contained in:
+86
-1
@@ -309,6 +309,78 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorMessage'
|
$ref: '#/components/schemas/ErrorMessage'
|
||||||
|
/api/v2/licenses/{licenseKey}/system-name:
|
||||||
|
put:
|
||||||
|
tags: [License]
|
||||||
|
summary: Set a License Key's System Name (Kiosk-only)
|
||||||
|
description: |
|
||||||
|
Sets the human-readable System Name for a License Key. The Kiosk is the
|
||||||
|
only writer; the Portal displays the name read-only. The name is unique
|
||||||
|
per account, compared case-insensitively, when non-null. Idempotent:
|
||||||
|
re-sending the current name returns 200 without a write.
|
||||||
|
operationId: setSystemName
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: licenseKey
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
pattern: '^[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}$'
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required: [systemName]
|
||||||
|
properties:
|
||||||
|
systemName:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 40
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: The stored name.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
required: [systemName, systemNameStatus]
|
||||||
|
properties:
|
||||||
|
systemName:
|
||||||
|
type: string
|
||||||
|
systemNameStatus:
|
||||||
|
type: string
|
||||||
|
enum: [ok]
|
||||||
|
'400':
|
||||||
|
description: 'Invalid name (`invalid_name`); empty/whitespace is invalid.'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorMessage'
|
||||||
|
'404':
|
||||||
|
description: 'Unknown license (`unknown_license`).'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorMessage'
|
||||||
|
'409':
|
||||||
|
description: 'Name already used on the account (`name_taken`).'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorMessage'
|
||||||
|
'429':
|
||||||
|
description: Rate limit exceeded (10 requests per minute per IP).
|
||||||
|
headers:
|
||||||
|
Retry-After:
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
description: Seconds to wait before retrying.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/ErrorMessage'
|
||||||
/api/v2/automations/create/account:
|
/api/v2/automations/create/account:
|
||||||
post:
|
post:
|
||||||
tags: [Automations]
|
tags: [Automations]
|
||||||
@@ -505,9 +577,16 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
maxLength: 254
|
maxLength: 254
|
||||||
|
systemName:
|
||||||
|
type: string
|
||||||
|
minLength: 1
|
||||||
|
maxLength: 40
|
||||||
|
description: |
|
||||||
|
Optional. The Kiosk's System Name (trimmed). Omitted means the stored
|
||||||
|
name is left untouched; empty/whitespace is invalid, never a clear.
|
||||||
LicenseResponse:
|
LicenseResponse:
|
||||||
type: object
|
type: object
|
||||||
required: [key, email_address]
|
required: [key, email_address, systemNameStatus]
|
||||||
properties:
|
properties:
|
||||||
key:
|
key:
|
||||||
type: string
|
type: string
|
||||||
@@ -515,6 +594,12 @@ components:
|
|||||||
email_address:
|
email_address:
|
||||||
type: string
|
type: string
|
||||||
format: email
|
format: email
|
||||||
|
systemNameStatus:
|
||||||
|
type: string
|
||||||
|
enum: [ok, unchanged, conflict, invalid]
|
||||||
|
description: |
|
||||||
|
Advisory outcome of the optional `systemName`. Validation itself
|
||||||
|
always succeeds. `unchanged` is returned when the field is omitted.
|
||||||
ScheduleBlock:
|
ScheduleBlock:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
|||||||
Reference in New Issue
Block a user