Users data models
getAllUsers — 200 response
Successful retrieval of a list of users
A registered end-user of a project.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
auth2FActivated | boolean | No | read-only (server-generated) | True if user has activated two-factor authentication. |
creationTime | string | No | read-only (server-generated); format: date-time | The time when the user was created. |
email | string | No | read-only (server-generated) | A valid email address. Present if project uses email addresses to uniquely identify users. |
externalKey | string | No | read-only (server-generated) | If present, this is the unique key used in an external system to identify this user. This field is relevant only if project is using BYOU. |
id | integer | Yes | read-only (server-generated) | This is a unique user ID assigned at time of creation. |
managedExternally | boolean | No | read-only (server-generated) | True if user account is managed by an external ID provider such as Microsoft Entra ID. |
name | string | Yes | Display name of the user. | |
password | string | No | A valid password. This is used only when creating or updating a user who logs in by email and password. | |
passwordUpdateTime | string | No | read-only (server-generated); format: date-time | The time when the password was last changed. Present only if user account is based on email/password. |
phoneNumber | string | No | read-only (server-generated); pattern: ^(\+)([0-9]{5,})$ | A valid phone number with country code (beginning with the '+' symbol). Present if project uses phone numbers to uniquely identify users. |
projectId | integer | Yes | read-only (server-generated) | The project ID that this user belongs to. |
verified | boolean | No | read-only (server-generated) | Displays true if the user has verified their account. |
getAllUsers — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getAllUsers — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getAllUsers — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getAllUsers — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getAllUsers — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
createUser — request
Request body for Create a user.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
accessControlGroupIds | array<integer> | No | Access Control Groups of the new user. Note This parameter is allowed only if the request is made by a user with permission to create users in the group, or a project API key with "Admin" privileges. | |
email | string | No | Email of the new user. Note Required if the project is configured to have email-based user accounts. | |
externalKey | string | No | An existing unique identity associated with the new user. Note Optional and used only if project is configured to be BYOU. | |
managedExternally | boolean | No | Optional and available when project is configured to use alternative authentication method for users to log in such as via OpenID Connect. This option is used if the project doesn't want users to store passwords in MODE. Users created with this option cannot update or delete user account information (email, password, etc.) themselves. Also, created users are "pre-verified", and no confirmation text/email will be sent. To use this option, the request must be made by a project API key with "Admin" privileges. | |
name | string | No | The name of the new user. | |
password | string | No | Password of the new user. Note Required if the project is configured to have email-based user accounts. | |
phoneNumber | string | No | Phone number of the new user. Note Required if the project is configured to have phone number-based user accounts. | |
projectId | integer | Yes | The unique id for a project. |
createUser — 201 response
Successfully created the user. The created object is returned in the response body. For an invited user, an "activation token" is also included in the returned object.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
auth2FActivated | boolean | No | read-only (server-generated) | True if user has activated two-factor authentication. |
creationTime | string | No | read-only (server-generated); format: date-time | The time when the user was created. |
email | string | No | read-only (server-generated) | A valid email address. Present if project uses email addresses to uniquely identify users. |
externalKey | string | No | read-only (server-generated) | If present, this is the unique key used in an external system to identify this user. This field is relevant only if project is using BYOU. |
id | integer | Yes | read-only (server-generated) | This is a unique user ID assigned at time of creation. |
managedExternally | boolean | No | read-only (server-generated) | True if user account is managed by an external ID provider such as Microsoft Entra ID. |
name | string | Yes | Display name of the user. | |
password | string | No | A valid password. This is used only when creating or updating a user who logs in by email and password. | |
passwordUpdateTime | string | No | read-only (server-generated); format: date-time | The time when the password was last changed. Present only if user account is based on email/password. |
phoneNumber | string | No | read-only (server-generated); pattern: ^(\+)([0-9]{5,})$ | A valid phone number with country code (beginning with the '+' symbol). Present if project uses phone numbers to uniquely identify users. |
projectId | integer | Yes | read-only (server-generated) | The project ID that this user belongs to. |
verified | boolean | No | read-only (server-generated) | Displays true if the user has verified their account. |
createUser — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
createUser — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
createUser — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
createUser — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
createUser — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 409 response
The user cannot be deleted because it is being used by another part of the system.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUser — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 200 response
Successfully retrieved a single user.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
auth2FActivated | boolean | No | read-only (server-generated) | True if user has activated two-factor authentication. |
creationTime | string | No | read-only (server-generated); format: date-time | The time when the user was created. |
email | string | No | read-only (server-generated) | A valid email address. Present if project uses email addresses to uniquely identify users. |
externalKey | string | No | read-only (server-generated) | If present, this is the unique key used in an external system to identify this user. This field is relevant only if project is using BYOU. |
id | integer | Yes | read-only (server-generated) | This is a unique user ID assigned at time of creation. |
managedExternally | boolean | No | read-only (server-generated) | True if user account is managed by an external ID provider such as Microsoft Entra ID. |
name | string | Yes | Display name of the user. | |
password | string | No | A valid password. This is used only when creating or updating a user who logs in by email and password. | |
passwordUpdateTime | string | No | read-only (server-generated); format: date-time | The time when the password was last changed. Present only if user account is based on email/password. |
phoneNumber | string | No | read-only (server-generated); pattern: ^(\+)([0-9]{5,})$ | A valid phone number with country code (beginning with the '+' symbol). Present if project uses phone numbers to uniquely identify users. |
projectId | integer | Yes | read-only (server-generated) | The project ID that this user belongs to. |
verified | boolean | No | read-only (server-generated) | Displays true if the user has verified their account. |
getUser — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 404 response
The requested user does not exist or is not accessible.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUser — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
updateUser — request
Request body for Update a user.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
auth2FActivated | boolean | No | read-only (server-generated) | True if user has activated two-factor authentication. |
creationTime | string | No | read-only (server-generated); format: date-time | The time when the user was created. |
email | string | No | read-only (server-generated) | A valid email address. Present if project uses email addresses to uniquely identify users. |
externalKey | string | No | read-only (server-generated) | If present, this is the unique key used in an external system to identify this user. This field is relevant only if project is using BYOU. |
id | integer | Yes | read-only (server-generated) | This is a unique user ID assigned at time of creation. |
managedExternally | boolean | No | read-only (server-generated) | True if user account is managed by an external ID provider such as Microsoft Entra ID. |
name | string | Yes | Display name of the user. | |
password | string | No | A valid password. This is used only when creating or updating a user who logs in by email and password. | |
passwordUpdateTime | string | No | read-only (server-generated); format: date-time | The time when the password was last changed. Present only if user account is based on email/password. |
phoneNumber | string | No | read-only (server-generated); pattern: ^(\+)([0-9]{5,})$ | A valid phone number with country code (beginning with the '+' symbol). Present if project uses phone numbers to uniquely identify users. |
projectId | integer | Yes | read-only (server-generated) | The project ID that this user belongs to. |
verified | boolean | No | read-only (server-generated) | Displays true if the user has verified their account. |
updateUser — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
updateUser — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
updateUser — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
updateUser — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
updateUser — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
activateTwoFactorAuthentication — request
Request body for Activate two-factor authentication.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
code | string | Yes | A time-based one-time passcode (TOTP) obtained from an authenticator app seeded by the TOTP secret generated in the previous step of activation. |
startActivating2FA — request
Request body for Start activating 2FA.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
password | string | Yes | User's password. |
startActivating2FA — 200 response
Activation process started. The returned object contains both the TOTP secret
and a special otpauth URI. The URI embeds both the secret and other essential information
about the TOTP. It is meant to be rendered as a QR code on a frontend application
so that it can be easily consumed by an authenticator app.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
otpAuthUri | string | Yes | read-only (server-generated) | An otpauth URI with the TOTP secret and other essential info embedded. It should be rendered as a QR code so that it can be easily consumed by an authenticator app. |
secret | string | Yes | read-only (server-generated) | TOTP secret to be entered into an authenticator app. |
startActivating2FA — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
startActivating2FA — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
startActivating2FA — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
startActivating2FA — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
startActivating2FA — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
changeEmailAddress — request
Request body for Change email address.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
email | string | Yes | The new email address to change to. |
changeEmailAddress — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
changeEmailAddress — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
changeEmailAddress — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
changeEmailAddress — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
changeEmailAddress — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deactivateTwoFactorAuthentication — request
Request body for Deactivate two-factor authentication.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
password | string | Yes | User's password. |
listUserHttpLogEntries — 200 response
200 response for Get HTTP Access Log Entries.
Entry in an HTTP access log.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
clientIp | string | No | read-only (server-generated) | IP address of caller. |
latency | integer | No | read-only (server-generated) | Elapsed time of call in nanoseconds. |
method | string | No | read-only (server-generated) | HTTP method. |
path | string | No | read-only (server-generated) | URI path of HTTP request. |
statusCode | integer | No | read-only (server-generated) | Returned status code of HTTP request. |
timestamp | string | No | read-only (server-generated); format: date-time | Timestamp of entry creation. |
listUserHttpLogEntries — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserHttpLogEntries — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserHttpLogEntries — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserHttpLogEntries — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserHttpLogEntries — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserKv — 200 response
An array of key-value pair objects are returned.
A key-value pair stored for a home.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
key | string | No | read-only (server-generated); pattern: ^[a-zA-Z0-9]([a-zA-Z0-9\-_\:]*[a-zA-Z0-9])*$ | Must be unique within each home. Must 1 to 256 characters and must contain alphanumeric characters; dashes ('-'), underscores ('_') and colons (':') may be used after the first character but must be followed by 1+ alphanumeric characters. |
modificationTime | string | No | read-only (server-generated); format: date-time | Timestamp of creation or last modification. |
value | boolean | string | number | array | object | Yes | An arbitrary piece of data assigned to the given key. |
listUserKv — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserKv — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserKv — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserKv — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserKv — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 404 response
The required kv does not exist or is not accessible.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 409 response
The kv cannot be deleted because it is being used by another part of the system.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
deleteUserKv — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 200 response
The matching key-value pair is returned.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
key | string | No | read-only (server-generated); pattern: ^[a-zA-Z0-9]([a-zA-Z0-9\-_\:]*[a-zA-Z0-9])*$ | Must be unique within each home. Must 1 to 256 characters and must contain alphanumeric characters; dashes ('-'), underscores ('_') and colons (':') may be used after the first character but must be followed by 1+ alphanumeric characters. |
modificationTime | string | No | read-only (server-generated); format: date-time | Timestamp of creation or last modification. |
value | boolean | string | number | array | object | Yes | An arbitrary piece of data assigned to the given key. |
getUserKv — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 404 response
The requested kv does not exist or is not accessible.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserKv — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
putUserKv — request
Request body for Create or update a key-value.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
value | string | Yes | The value set to the key. |
putUserKv — 403 response
Request failed because of invalid data or denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
putUserKv — 404 response
The specified user does not exist.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
putUserKv — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
putUserKv — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserLogEntries — 200 response
200 response for Get Log Entries.
Entry in a general-purpose log.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
caller | object | No | Information about the caller (id, type, display name, sudoer). | |
level | integer | No | read-only (server-generated) | Log level of entry. |
source | string | No | Source from where the message was generated. | |
text | string | No | read-only (server-generated) | Text of log message. |
timestamp | string | No | read-only (server-generated); format: date-time | Timestamp of entry creation. |
listUserLogEntries — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserLogEntries — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserLogEntries — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserLogEntries — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
listUserLogEntries — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 200 response
Successfully retrieved user permissions.
Represents a permission of user.
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
actions | object | Yes | read-only (server-generated) | Resource IDs on which the user can perform actions. If the user has all objects access for the resource type, it contains “*” or “root” instead of listing all resource IDs. | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||
resourceType | string | Yes | read-only (server-generated); one of: all, accessControlGroup, user, userLog, home, homeKeyValue, homeLog, homeDevice, homeSmartModuleREST, homeEvent, homeAlert, entityClass, entity, entityMetric, entityBlob, entityAlert, entityAlertRule, entityAssistant, entityScheduledReportConfiguration, entityScheduledReportExecution, entityAppProxy, entityCustomLog, alertRule, projectLog, projectAlert | Resource type | ||||||||||||||||||||||||||||||
getUserPermissions — 401 response
Authorization is required to access this resource.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 403 response
Request failed because of denied permission.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 404 response
The requested permission does not exist or is not accessible.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 429 response
Request failed because of rate limit.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 500 response
An unexpected error has occurred.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
getUserPermissions — 503 response
The service is temporarily unavailable.
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |