All URIs are relative to https://api.artik.cloud/v1.1
| Method | HTTP request | Description |
|---|---|---|
| createUserProperties | POST /users/{userId}/properties | Create User Application Properties |
| deleteUserProperties | DELETE /users/{userId}/properties | Delete User Application Properties |
| getSelf | GET /users/self | Get Current User Profile |
| getUserDeviceTypes | GET /users/{userId}/devicetypes | Get User Device Types |
| getUserDevices | GET /users/{userId}/devices | Get User Devices |
| getUserProperties | GET /users/{userId}/properties | Get User application properties |
| getUserRules | GET /users/{userId}/rules | Get User Rules |
| listAllSharesForUser | GET /users/{userId}/shares | Get User shares |
| updateUserProperties | PUT /users/{userId}/properties | Update User Application Properties |
PropertiesEnvelope createUserProperties(userId, properties, aid)
Create User Application Properties
Create application properties for a user
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User Id
AppProperties properties = new AppProperties(); // AppProperties | Properties to be updated
String aid = "aid_example"; // String | Application ID
try {
PropertiesEnvelope result = apiInstance.createUserProperties(userId, properties, aid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#createUserProperties");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User Id | |
| properties | AppProperties | Properties to be updated | |
| aid | String | Application ID | [optional] |
- Content-Type: application/json
- Accept: application/json
PropertiesEnvelope deleteUserProperties(userId, aid)
Delete User Application Properties
Deletes a user's application properties
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User Id
String aid = "aid_example"; // String | Application ID
try {
PropertiesEnvelope result = apiInstance.deleteUserProperties(userId, aid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#deleteUserProperties");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User Id | |
| aid | String | Application ID | [optional] |
- Content-Type: Not defined
- Accept: application/json
UserEnvelope getSelf()
Get Current User Profile
Get's the current user's profile
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
try {
UserEnvelope result = apiInstance.getSelf();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getSelf");
e.printStackTrace();
}This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
DeviceTypesEnvelope getUserDeviceTypes(userId, offset, count, includeShared)
Get User Device Types
Retrieve User's Device Types
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User ID.
Integer offset = 56; // Integer | Offset for pagination.
Integer count = 56; // Integer | Desired count of items in the result set
Boolean includeShared = true; // Boolean | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
try {
DeviceTypesEnvelope result = apiInstance.getUserDeviceTypes(userId, offset, count, includeShared);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUserDeviceTypes");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User ID. | |
| offset | Integer | Offset for pagination. | [optional] |
| count | Integer | Desired count of items in the result set | [optional] |
| includeShared | Boolean | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users. | [optional] |
- Content-Type: Not defined
- Accept: application/json
DevicesEnvelope getUserDevices(userId, offset, count, includeProperties, owner, includeShareInfo, dtid)
Get User Devices
Retrieve User's Devices
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User ID
Integer offset = 56; // Integer | Offset for pagination.
Integer count = 56; // Integer | Desired count of items in the result set
Boolean includeProperties = true; // Boolean | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users.
String owner = "owner_example"; // String | Return owned and/or shared devices. Default to ALL.
Boolean includeShareInfo = true; // Boolean | Include share info
String dtid = "dtid_example"; // String | Return only devices of this device type. If empty, assumes all device types allowed by the authorization.
try {
DevicesEnvelope result = apiInstance.getUserDevices(userId, offset, count, includeProperties, owner, includeShareInfo, dtid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUserDevices");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User ID | |
| offset | Integer | Offset for pagination. | [optional] |
| count | Integer | Desired count of items in the result set | [optional] |
| includeProperties | Boolean | Optional. Boolean (true/false) - If false, only return the user's device types. If true, also return device types shared by other users. | [optional] |
| owner | String | Return owned and/or shared devices. Default to ALL. | [optional] |
| includeShareInfo | Boolean | Include share info | [optional] |
| dtid | String | Return only devices of this device type. If empty, assumes all device types allowed by the authorization. | [optional] |
- Content-Type: Not defined
- Accept: application/json
PropertiesEnvelope getUserProperties(userId, aid)
Get User application properties
Get application properties of a user
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User Id
String aid = "aid_example"; // String | Application ID
try {
PropertiesEnvelope result = apiInstance.getUserProperties(userId, aid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUserProperties");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User Id | |
| aid | String | Application ID | [optional] |
- Content-Type: Not defined
- Accept: application/json
RulesEnvelope getUserRules(userId, excludeDisabled, count, offset, owner)
Get User Rules
Retrieve User's Rules
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User ID.
Boolean excludeDisabled = true; // Boolean | Exclude disabled rules in the result.
Integer count = 56; // Integer | Desired count of items in the result set.
Integer offset = 56; // Integer | Offset for pagination.
String owner = "owner_example"; // String | Rule owner
try {
RulesEnvelope result = apiInstance.getUserRules(userId, excludeDisabled, count, offset, owner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#getUserRules");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User ID. | |
| excludeDisabled | Boolean | Exclude disabled rules in the result. | [optional] |
| count | Integer | Desired count of items in the result set. | [optional] |
| offset | Integer | Offset for pagination. | [optional] |
| owner | String | Rule owner | [optional] [enum: user, application, all] |
- Content-Type: Not defined
- Accept: application/json
DeviceSharingEnvelope listAllSharesForUser(userId, filter, count, offset)
Get User shares
Get User shares
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User ID.
String filter = "filter_example"; // String | filter
Integer count = 56; // Integer | Desired count of items in the result set.
Integer offset = 56; // Integer | Offset for pagination.
try {
DeviceSharingEnvelope result = apiInstance.listAllSharesForUser(userId, filter, count, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#listAllSharesForUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User ID. | |
| filter | String | filter | |
| count | Integer | Desired count of items in the result set. | [optional] |
| offset | Integer | Offset for pagination. | [optional] |
- Content-Type: Not defined
- Accept: application/json
PropertiesEnvelope updateUserProperties(userId, properties, aid)
Update User Application Properties
Updates application properties of a user
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.UsersApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
UsersApi apiInstance = new UsersApi();
String userId = "userId_example"; // String | User Id
AppProperties properties = new AppProperties(); // AppProperties | Properties to be updated
String aid = "aid_example"; // String | Application ID
try {
PropertiesEnvelope result = apiInstance.updateUserProperties(userId, properties, aid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UsersApi#updateUserProperties");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | User Id | |
| properties | AppProperties | Properties to be updated | |
| aid | String | Application ID | [optional] |
- Content-Type: application/json
- Accept: application/json