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:
title: smart-me Sub User API
version: v1
security:
- OAuth2: []
- Basic: []
tags:
- name: SubUser
paths:
/SubUser/{id}:
get:
tags:
- SubUser
summary: Get a sub user. The user must be assigned to the user that makes this call
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
text/plain:
schema:
$ref: '#/components/schemas/SubUserData'
application/json:
schema:
$ref: '#/components/schemas/SubUserData'
text/json:
schema:
$ref: '#/components/schemas/SubUserData'
operationId: getSubUserById
x-operation-id-source: derived
delete:
tags:
- SubUser
summary: Delete a subuser
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
operationId: deleteSubUserById
x-operation-id-source: derived
/SubUser:
post:
tags:
- SubUser
summary: Creates or updates a subuser. To create a new user set no ID (empty)
requestBody:
content:
application/json-patch+json:
schema:
$ref: '#/components/schemas/SubUserData'
application/json:
schema:
$ref: '#/components/schemas/SubUserData'
text/json:
schema:
$ref: '#/components/schemas/SubUserData'
application/*+json:
schema:
$ref: '#/components/schemas/SubUserData'
required: true
responses:
'200':
description: OK
operationId: postSubUser
x-operation-id-source: derived
components:
schemas:
SubUserData:
type: object
properties:
id:
type:
- string
- 'null'
description: The ID of the user
username:
type:
- string
- 'null'
description: The username
email:
type:
- string
- 'null'
description: The Email adress
permissionLevel:
$ref: '#/components/schemas/UserPermissionLevel'
accessTimeStartDate:
type: string
description: The start date. From this date the user has access
format: date-time
accessEndDate:
type: string
description: The end date. until this date the user has access
format: date-time
newPassword:
type:
- string
- 'null'
description: If set this is used a new password
additionalProperties: false
description: Container data for the sub user
UserPermissionLevel:
enum:
- 0
- 1
type: integer
description: 'The permission levle of the sub user<p>Members: </p><ul><li><i>0</i> - SelectedFolderAndSubfoldersMeters</li><li><i>1</i> - SelectedFolderOnly</li></ul>'
format: int32
securitySchemes:
OAuth2:
type: oauth2
description: OAuth 2.0 authorization
flows:
clientCredentials:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
Basic:
type: http
description: Basic authorization
scheme: Basic