Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Latest commit

 

History

History
1231 lines (905 loc) · 41.4 KB

File metadata and controls

1231 lines (905 loc) · 41.4 KB

clientapi_atrocore.UserApi

All URIs are relative to https://demo.atropim.com/api/v1

Method HTTP request Description
add_relation_for_user POST /User/{link}/relation Add relation for User
create_user_item POST /User Create a record of the User
delete_user_item DELETE /User/{id} Delete a record of the User
follow_user PUT /User/{id}/subscription Follow the User stream
get_linked_items_for_user_item GET /User/{id}/{link} Returns linked entities for the User
get_list_of_user_items GET /User Returns a collection of User records
get_user_item GET /User/{id} Returns a record of the User
link_user POST /User/{id}/{link} Link User to Entities
mass_delete_user POST /User/action/massDelete Mass delete of User data
mass_update_user PUT /User/action/massUpdate Mass update of User data
remove_relation_for_user DELETE /User/{link}/relation Remove relation for User
unfollow_user DELETE /User/{id}/subscription Unfollow the User stream
unlink_user DELETE /User/{id}/{link} Unlink User from Entities
update_user_item PUT /User/{id} Update a record of the User

add_relation_for_user

bool add_relation_for_user(link, ids, foreign_ids)

Add relation for User

Add relation for User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 
    foreign_ids = ['foreign_ids_example'] # List[str] | 

    try:
        # Add relation for User
        api_response = api_instance.add_relation_for_user(link, ids, foreign_ids)
        print("The response of UserApi->add_relation_for_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->add_relation_for_user: %s\n" % e)

Parameters

Name Type Description Notes
link str
ids List[str]
foreign_ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

create_user_item

User create_user_item(create_user_item_request)

Create a record of the User

Create a record of the User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.create_user_item_request import CreateUserItemRequest
from clientapi_atrocore.models.user import User
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    create_user_item_request = clientapi_atrocore.CreateUserItemRequest() # CreateUserItemRequest | 

    try:
        # Create a record of the User
        api_response = api_instance.create_user_item(create_user_item_request)
        print("The response of UserApi->create_user_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->create_user_item: %s\n" % e)

Parameters

Name Type Description Notes
create_user_item_request CreateUserItemRequest

Return type

User

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

delete_user_item

bool delete_user_item(id)

Delete a record of the User

Delete a record of the User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 

    try:
        # Delete a record of the User
        api_response = api_instance.delete_user_item(id)
        print("The response of UserApi->delete_user_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->delete_user_item: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

follow_user

FollowAccount200Response follow_user(id)

Follow the User stream

Follow the User stream

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.follow_account200_response import FollowAccount200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 

    try:
        # Follow the User stream
        api_response = api_instance.follow_user(id)
        print("The response of UserApi->follow_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->follow_user: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

FollowAccount200Response

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_linked_items_for_user_item

GetLinkedItemsForAccountItem200Response get_linked_items_for_user_item(id, link, language=language)

Returns linked entities for the User

Returns linked entities for the User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.get_linked_items_for_account_item200_response import GetLinkedItemsForAccountItem200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)

    try:
        # Returns linked entities for the User
        api_response = api_instance.get_linked_items_for_user_item(id, link, language=language)
        print("The response of UserApi->get_linked_items_for_user_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->get_linked_items_for_user_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
language str Set this parameter for data to be returned for a specified language [optional]

Return type

GetLinkedItemsForAccountItem200Response

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_list_of_user_items

GetListOfUserItems200Response get_list_of_user_items(language=language, select=select, where=where, offset=offset, max_size=max_size, sort_by=sort_by, asc=asc)

Returns a collection of User records

Returns a collection of User records

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.get_list_of_user_items200_response import GetListOfUserItems200Response
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)
    select = 'name,createdAt' # str | Available fields: acceptanceStatus, account, accountId, accountName, authLogRecordId, authTokenId, avatarId, avatarName, avatarPathsData, createdAt, createdBy, createdById, createdByName, defaultTeam, defaultTeamId, defaultTeamName, deleted, emailAddress, filterCreateImportJob, filterUpdateImportJob, firstName, gender, id, ipAddress, isActive, isAdmin, isPortalUser, isSuperAdmin, lastAccess, lastName, name, notesIds, password, passwordConfirm, phoneNumber, portal, portalId, portalName, portalRoles, portalRolesIds, portalRolesNames, position, preferencesId, preferencesName, roles, rolesIds, rolesNames, salutationName, sendAccessInfo, teamRole, teams, teamsColumns, teamsIds, teamsNames, title, token, type, userName (optional)
    where = None # List[object] | There are a lot of filter types supported. You can learn all of them if you trace what's requested by Atro UI in the network tab in your browser console (press F12 key to open the console). (optional)
    offset = 0 # int |  (optional)
    max_size = 50 # int |  (optional)
    sort_by = 'name' # str |  (optional)
    asc = true # bool |  (optional)

    try:
        # Returns a collection of User records
        api_response = api_instance.get_list_of_user_items(language=language, select=select, where=where, offset=offset, max_size=max_size, sort_by=sort_by, asc=asc)
        print("The response of UserApi->get_list_of_user_items:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->get_list_of_user_items: %s\n" % e)

Parameters

Name Type Description Notes
language str Set this parameter for data to be returned for a specified language [optional]
select str Available fields: acceptanceStatus, account, accountId, accountName, authLogRecordId, authTokenId, avatarId, avatarName, avatarPathsData, createdAt, createdBy, createdById, createdByName, defaultTeam, defaultTeamId, defaultTeamName, deleted, emailAddress, filterCreateImportJob, filterUpdateImportJob, firstName, gender, id, ipAddress, isActive, isAdmin, isPortalUser, isSuperAdmin, lastAccess, lastName, name, notesIds, password, passwordConfirm, phoneNumber, portal, portalId, portalName, portalRoles, portalRolesIds, portalRolesNames, position, preferencesId, preferencesName, roles, rolesIds, rolesNames, salutationName, sendAccessInfo, teamRole, teams, teamsColumns, teamsIds, teamsNames, title, token, type, userName [optional]
where List[object] There are a lot of filter types supported. You can learn all of them if you trace what's requested by Atro UI in the network tab in your browser console (press F12 key to open the console). [optional]
offset int [optional]
max_size int [optional]
sort_by str [optional]
asc bool [optional]

Return type

GetListOfUserItems200Response

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

get_user_item

User get_user_item(id, language=language)

Returns a record of the User

Returns a record of the User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.user import User
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 
    language = 'language_example' # str | Set this parameter for data to be returned for a specified language (optional)

    try:
        # Returns a record of the User
        api_response = api_instance.get_user_item(id, language=language)
        print("The response of UserApi->get_user_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->get_user_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
language str Set this parameter for data to be returned for a specified language [optional]

Return type

User

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

link_user

bool link_user(id, link, link_account_request)

Link User to Entities

Link User to Entities

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.link_account_request import LinkAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    link_account_request = clientapi_atrocore.LinkAccountRequest() # LinkAccountRequest | 

    try:
        # Link User to Entities
        api_response = api_instance.link_user(id, link, link_account_request)
        print("The response of UserApi->link_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->link_user: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
link_account_request LinkAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

mass_delete_user

bool mass_delete_user(link_account_request)

Mass delete of User data

Mass delete of User data

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.link_account_request import LinkAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    link_account_request = clientapi_atrocore.LinkAccountRequest() # LinkAccountRequest | 

    try:
        # Mass delete of User data
        api_response = api_instance.mass_delete_user(link_account_request)
        print("The response of UserApi->mass_delete_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->mass_delete_user: %s\n" % e)

Parameters

Name Type Description Notes
link_account_request LinkAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

mass_update_user

bool mass_update_user(mass_update_account_request)

Mass update of User data

Mass update of User data

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.mass_update_account_request import MassUpdateAccountRequest
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    mass_update_account_request = clientapi_atrocore.MassUpdateAccountRequest() # MassUpdateAccountRequest | 

    try:
        # Mass update of User data
        api_response = api_instance.mass_update_user(mass_update_account_request)
        print("The response of UserApi->mass_update_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->mass_update_user: %s\n" % e)

Parameters

Name Type Description Notes
mass_update_account_request MassUpdateAccountRequest

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

remove_relation_for_user

bool remove_relation_for_user(link, ids, foreign_ids)

Remove relation for User

Remove relation for User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 
    foreign_ids = ['foreign_ids_example'] # List[str] | 

    try:
        # Remove relation for User
        api_response = api_instance.remove_relation_for_user(link, ids, foreign_ids)
        print("The response of UserApi->remove_relation_for_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->remove_relation_for_user: %s\n" % e)

Parameters

Name Type Description Notes
link str
ids List[str]
foreign_ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

unfollow_user

bool unfollow_user(id)

Unfollow the User stream

Unfollow the User stream

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 

    try:
        # Unfollow the User stream
        api_response = api_instance.unfollow_user(id)
        print("The response of UserApi->unfollow_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->unfollow_user: %s\n" % e)

Parameters

Name Type Description Notes
id str

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

unlink_user

bool unlink_user(id, link, ids)

Unlink User from Entities

Unlink User from Entities

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 
    link = 'link_example' # str | 
    ids = ['ids_example'] # List[str] | 

    try:
        # Unlink User from Entities
        api_response = api_instance.unlink_user(id, link, ids)
        print("The response of UserApi->unlink_user:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->unlink_user: %s\n" % e)

Parameters

Name Type Description Notes
id str
link str
ids List[str]

Return type

bool

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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

update_user_item

User update_user_item(id, create_user_item_request)

Update a record of the User

Update a record of the User

Example

  • Api Key Authentication (Authorization-Token):
import time
import os
import clientapi_atrocore
from clientapi_atrocore.models.create_user_item_request import CreateUserItemRequest
from clientapi_atrocore.models.user import User
from clientapi_atrocore.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://demo.atropim.com/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = clientapi_atrocore.Configuration(
    host = "https://demo.atropim.com/api/v1"
)

# 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: Authorization-Token
configuration.api_key['Authorization-Token'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization-Token'] = 'Bearer'

# Enter a context with an instance of the API client
with clientapi_atrocore.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = clientapi_atrocore.UserApi(api_client)
    id = 'id_example' # str | 
    create_user_item_request = clientapi_atrocore.CreateUserItemRequest() # CreateUserItemRequest | 

    try:
        # Update a record of the User
        api_response = api_instance.update_user_item(id, create_user_item_request)
        print("The response of UserApi->update_user_item:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling UserApi->update_user_item: %s\n" % e)

Parameters

Name Type Description Notes
id str
create_user_item_request CreateUserItemRequest

Return type

User

Authorization

Authorization-Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
304 Not Modified -
400 Bad Request -
401 Unauthorized -
403 Forbidden -
404 Not Found -
500 Internal Server Error -

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