All URIs are relative to https://api.basistheory.com
Method | HTTP request | Description |
---|---|---|
create_connection | POST /tenants/self/connections | |
create_invitation | POST /tenants/self/invitations | |
delete | DELETE /tenants/self | |
delete_connection | DELETE /tenants/self/connections | |
delete_invitation | DELETE /tenants/self/invitations/{invitationId} | |
delete_member | DELETE /tenants/self/members/{memberId} | |
get | GET /tenants/self | |
get_invitations | GET /tenants/self/invitations | |
get_members | GET /tenants/self/members | |
get_tenant_usage_report | GET /tenants/self/reports/usage | |
owner_get | GET /tenants/self/owner | |
resend_invitation | POST /tenants/self/invitations/{invitationId}/resend | |
update | PUT /tenants/self | |
update_member | PUT /tenants/self/members/{memberId} |
CreateTenantConnectionResponse create_connection(create_tenant_connection_request)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.create_tenant_connection_response import CreateTenantConnectionResponse
from basistheory.model.create_tenant_connection_request import CreateTenantConnectionRequest
from basistheory.model.validation_problem_details import ValidationProblemDetails
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
create_tenant_connection_request = CreateTenantConnectionRequest(
strategy="strategy_example",
options=TenantConnectionOptions(
domain_aliases=[
"domain_aliases_example",
],
),
) # CreateTenantConnectionRequest |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.create_connection(create_tenant_connection_request)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->create_connection: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_tenant_connection_request | CreateTenantConnectionRequest |
CreateTenantConnectionResponse
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantInvitationResponse create_invitation(create_tenant_invitation_request)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.validation_problem_details import ValidationProblemDetails
from basistheory.model.tenant_invitation_response import TenantInvitationResponse
from basistheory.model.problem_details import ProblemDetails
from basistheory.model.create_tenant_invitation_request import CreateTenantInvitationRequest
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
create_tenant_invitation_request = CreateTenantInvitationRequest(
email="email_example",
role="role_example",
) # CreateTenantInvitationRequest |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.create_invitation(create_tenant_invitation_request)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->create_invitation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
create_tenant_invitation_request | CreateTenantInvitationRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_instance.delete()
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->delete: %s\n" % e)
This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateTenantConnectionResponse delete_connection()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.create_tenant_connection_response import CreateTenantConnectionResponse
from basistheory.model.validation_problem_details import ValidationProblemDetails
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.delete_connection()
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->delete_connection: %s\n" % e)
This endpoint does not need any parameter.
CreateTenantConnectionResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_invitation(invitation_id)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
invitation_id = "62ECB020-8429-30cc-01FF-CCfeEe150AC3" # str |
# example passing only required values which don't have defaults set
try:
api_instance.delete_invitation(invitation_id)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->delete_invitation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invitation_id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_member(member_id)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
member_id = "62ECB020-8429-30cc-01FF-CCfeEe150AC3" # str |
# example passing only required values which don't have defaults set
try:
api_instance.delete_member(member_id)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->delete_member: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
member_id | str |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
422 | Client Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tenant get()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.tenant import Tenant
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.get()
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantInvitationResponsePaginatedList get_invitations()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.tenant_invitation_response_paginated_list import TenantInvitationResponsePaginatedList
from basistheory.model.tenant_invitation_status import TenantInvitationStatus
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
status = TenantInvitationStatus("PENDING") # TenantInvitationStatus | (optional)
page = 0 # int, none_type | (optional)
start = "start_example" # str, none_type | (optional)
size = 0 # int, none_type | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.get_invitations(status=status, page=page, start=start, size=size)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->get_invitations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
status | TenantInvitationStatus | [optional] | |
page | int, none_type | [optional] | |
start | str, none_type | [optional] | |
size | int, none_type | [optional] |
TenantInvitationResponsePaginatedList
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantMemberResponsePaginatedList get_members()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.tenant_member_response_paginated_list import TenantMemberResponsePaginatedList
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
user_id = [
"62ECB020-8429-30cc-01FF-CCfeEe150AC3",
] # [str], none_type | (optional)
page = 0 # int, none_type | (optional)
start = "start_example" # str, none_type | (optional)
size = 0 # int, none_type | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.get_members(user_id=user_id, page=page, start=start, size=size)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->get_members: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_id | [str], none_type | [optional] | |
page | int, none_type | [optional] | |
start | str, none_type | [optional] | |
size | int, none_type | [optional] |
TenantMemberResponsePaginatedList
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantUsageReport get_tenant_usage_report()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from basistheory.model.tenant_usage_report import TenantUsageReport
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.get_tenant_usage_report()
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->get_tenant_usage_report: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantMemberResponse owner_get()
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from basistheory.model.tenant_member_response import TenantMemberResponse
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.owner_get()
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->owner_get: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantInvitationResponse resend_invitation(invitation_id)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.validation_problem_details import ValidationProblemDetails
from basistheory.model.tenant_invitation_response import TenantInvitationResponse
from basistheory.model.problem_details import ProblemDetails
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
invitation_id = "62ECB020-8429-30cc-01FF-CCfeEe150AC3" # str |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.resend_invitation(invitation_id)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->resend_invitation: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
invitation_id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Tenant update(update_tenant_request)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.tenant import Tenant
from basistheory.model.validation_problem_details import ValidationProblemDetails
from basistheory.model.problem_details import ProblemDetails
from basistheory.model.update_tenant_request import UpdateTenantRequest
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
update_tenant_request = UpdateTenantRequest(
name="j",
settings={
"key": "key_example",
},
) # UpdateTenantRequest |
# example passing only required values which don't have defaults set
try:
api_response = api_instance.update(update_tenant_request)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_tenant_request | UpdateTenantRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
404 | Not Found | - |
401 | Unauthorized | - |
403 | Forbidden | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TenantMemberResponse update_member(member_id)
- Api Key Authentication (ApiKey):
import time
import basistheory
from basistheory.api import tenants_api
from basistheory.model.problem_details import ProblemDetails
from basistheory.model.update_tenant_member_request import UpdateTenantMemberRequest
from basistheory.model.tenant_member_response import TenantMemberResponse
from pprint import pprint
# Defining the host is optional and defaults to https://api.basistheory.com
# See configuration.py for a list of all supported configuration parameters.
configuration = basistheory.Configuration(
host = "https://api.basistheory.com"
)
# 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 API key authorization: ApiKey
configuration.api_key['ApiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with basistheory.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tenants_api.TenantsApi(api_client)
member_id = "62ECB020-8429-30cc-01FF-CCfeEe150AC3" # str |
update_tenant_member_request = UpdateTenantMemberRequest(
role="role_example",
) # UpdateTenantMemberRequest | (optional)
# example passing only required values which don't have defaults set
try:
api_response = api_instance.update_member(member_id)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->update_member: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.update_member(member_id, update_tenant_member_request=update_tenant_member_request)
pprint(api_response)
except basistheory.ApiException as e:
print("Exception when calling TenantsApi->update_member: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
member_id | str | ||
update_tenant_member_request | UpdateTenantMemberRequest | [optional] |
- Content-Type: application/json-patch+json, application/json, text/json, application/+json, application/xml, text/xml, application/+xml
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]