All URIs are relative to https://app.chatwoot.com/
| Method | HTTP request | Description |
|---|---|---|
| create_a_user | POST /platform/api/v1/users | Create a User |
| delete_a_user | DELETE /platform/api/v1/users/{id} | Delete a User |
| get_details_of_a_user | GET /platform/api/v1/users/{id} | Get an user details |
| get_sso_url_of_a_user | GET /platform/api/v1/users/{id}/login | Get User SSO Link |
| update_a_user | PATCH /platform/api/v1/users/{id} | Update a user |
User create_a_user(body)
Create a User
Create a User
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.UsersApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.UserCreateUpdatePayload() # UserCreateUpdatePayload |
try:
# Create a User
api_response = api_instance.create_a_user(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->create_a_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | UserCreateUpdatePayload |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_a_user(id)
Delete a User
Delete a User
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.UsersApi(chatwoot_client.ApiClient(configuration))
id = 56 # int | The numeric ID of the user on the platform
try:
# Delete a User
api_instance.delete_a_user(id)
except ApiException as e:
print("Exception when calling UsersApi->delete_a_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The numeric ID of the user on the platform |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User get_details_of_a_user(id)
Get an user details
Get the details of an user
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.UsersApi(chatwoot_client.ApiClient(configuration))
id = 56 # int | The numeric ID of the user on the platform
try:
# Get an user details
api_response = api_instance.get_details_of_a_user(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_details_of_a_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The numeric ID of the user on the platform |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2001 get_sso_url_of_a_user(id)
Get User SSO Link
Get the sso link of a user
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.UsersApi(chatwoot_client.ApiClient(configuration))
id = 56 # int | The numeric ID of the user on the platform
try:
# Get User SSO Link
api_response = api_instance.get_sso_url_of_a_user(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->get_sso_url_of_a_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | The numeric ID of the user on the platform |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User update_a_user(body, id)
Update a user
Update a user's attributes
from __future__ import print_function
import time
import chatwoot_client
from chatwoot_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: platformAppApiKey
configuration = chatwoot_client.Configuration()
configuration.api_key['api_access_token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_access_token'] = 'Bearer'
# create an instance of the API class
api_instance = chatwoot_client.UsersApi(chatwoot_client.ApiClient(configuration))
body = chatwoot_client.UserCreateUpdatePayload() # UserCreateUpdatePayload |
id = 56 # int | The numeric ID of the user on the platform
try:
# Update a user
api_response = api_instance.update_a_user(body, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UsersApi->update_a_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | UserCreateUpdatePayload | ||
| id | int | The numeric ID of the user on the platform |
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]