Skip to content

Latest commit

 

History

History
156 lines (114 loc) · 5.2 KB

UserSettingsApi.md

File metadata and controls

156 lines (114 loc) · 5.2 KB

canopy.openapi.UserSettingsApi

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}

user_settings_get_user_settings

GetUserSettingsQueryResult user_settings_get_user_settings(tenant_id, user_id)

Example

  • 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)

Parameters

Name Type Description Notes
tenant_id str
user_id str

Return type

GetUserSettingsQueryResult

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json, text/json

HTTP response details

Status code Description Response headers
200 Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

user_settings_put_user_settings

str user_settings_put_user_settings(tenant_id, user_id, user_settings_put_user_settings_request)

Example

  • 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)

Parameters

Name Type Description Notes
tenant_id str
user_id str
user_settings_put_user_settings_request UserSettingsPutUserSettingsRequest

Return type

str

Authorization

Bearer

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/*+json
  • Accept: text/plain, application/json, text/json

HTTP response details

Status code Description Response headers
200 Success -

[Back to top] [Back to API list] [Back to Model list] [Back to README]