All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
user_settings_get_user_settings | GET /user-settings/{tenantId}/{userId} | |
user_settings_put_user_settings | PUT /user-settings/{tenantId}/{userId} |
GetUserSettingsQueryResult user_settings_get_user_settings(tenant_id, user_id)
- OAuth Authentication (Bearer):
from __future__ import print_function
import time
import canopy.openapi
from canopy.openapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = canopy.openapi.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure OAuth2 access token for authorization: Bearer
configuration = canopy.openapi.Configuration(
host = "http://localhost"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Enter a context with an instance of the API client
with canopy.openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = canopy.openapi.UserSettingsApi(api_client)
tenant_id = 'tenant_id_example' # str |
user_id = 'user_id_example' # str |
try:
api_response = api_instance.user_settings_get_user_settings(tenant_id, user_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserSettingsApi->user_settings_get_user_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
tenant_id | str | ||
user_id | str |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str user_settings_put_user_settings(tenant_id, user_id, user_settings_put_user_settings_request)
- OAuth Authentication (Bearer):
from __future__ import print_function
import time
import canopy.openapi
from canopy.openapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = canopy.openapi.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure OAuth2 access token for authorization: Bearer
configuration = canopy.openapi.Configuration(
host = "http://localhost"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Enter a context with an instance of the API client
with canopy.openapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = canopy.openapi.UserSettingsApi(api_client)
tenant_id = 'tenant_id_example' # str |
user_id = 'user_id_example' # str |
user_settings_put_user_settings_request = canopy.openapi.UserSettingsPutUserSettingsRequest() # UserSettingsPutUserSettingsRequest |
try:
api_response = api_instance.user_settings_put_user_settings(tenant_id, user_id, user_settings_put_user_settings_request)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserSettingsApi->user_settings_put_user_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
tenant_id | str | ||
user_id | str | ||
user_settings_put_user_settings_request | UserSettingsPutUserSettingsRequest |
str
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]