Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
description: ''
license:
name: ''
title: Wenmar Settings API
version: 0.1.0
tags:
- name: Settings
paths:
/locations/{id}/settings:
get:
operationId: location_settings_show
parameters:
- in: path
name: id
required: true
schema:
format: int64
type: integer
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the location''s settings as rows: key, page, card, card_title, label, description, kind, value and editable, with the version they were read at'
'401':
description: unauthenticated
'404':
description: no such location
security:
- bearer: []
tags:
- Settings
summary: Location settings show
x-summary-source: derived
patch:
operationId: location_settings_patch
parameters:
- in: path
name: id
required: true
schema:
format: int64
type: integer
requestBody:
content:
application/json:
schema:
properties:
changes:
additionalProperties: true
default: {}
description: 'The settings to change, keyed as `settings.show` returns them, each with its whole new
value: `true` or `false` for a switch, text for a line or text setting'
type: object
expected_version:
default: null
description: The version the caller read; when sent and no longer the latest, nothing is changed
format: int64
type:
- integer
- 'null'
locale:
default: null
description: The language the rows' words are rendered in, as an `Accept-Language` tag
type:
- string
- 'null'
type: object
required: false
responses:
'200':
content:
application/json:
schema:
type: object
description: 'the location''s settings after the change, as the GET answers them; body: changes (each setting''s key with its new value: true/false for a switch, text for a line or text) and optionally expected_version'
'401':
description: unauthenticated
'403':
description: forbidden (needs settings.manage)
'404':
description: no such location
'409':
description: expected_version is not the latest version
'422':
description: 'validation_failed: an unknown key, a wrong type or a refused value, keyed by the setting''s key'
security:
- bearer: []
tags:
- Settings
summary: Location settings patch
x-summary-source: derived
components:
securitySchemes:
bearer:
scheme: bearer
type: http