All URIs are relative to https://crm.example.com/rest
| Method | HTTP request | Description |
|---|---|---|
| create_many_task_targets | POST /batch/taskTargets | Create Many taskTargets |
| create_one_task_target | POST /taskTargets | Create One taskTarget |
| delete_many_task_targets | DELETE /taskTargets | Delete Many taskTargets |
| delete_one_task_target | DELETE /taskTargets/{id} | Delete One taskTarget |
| find_many_task_targets | GET /taskTargets | Find Many taskTargets |
| find_one_task_target | GET /taskTargets/{id} | Find One taskTarget |
| find_task_target_duplicates | POST /taskTargets/duplicates | Find taskTarget Duplicates |
| group_by_task_targets | GET /taskTargets/groupBy | Group By taskTargets |
| merge_many_task_targets | PATCH /taskTargets/merge | Merge Many taskTargets |
| restore_many_task_targets | PATCH /restore/taskTargets | Restore Many taskTargets |
| restore_one_task_target | PATCH /restore/taskTargets/{id} | Restore One taskTarget |
| update_many_task_targets | PATCH /taskTargets | Update Many taskTargets |
| update_one_task_target | PATCH /taskTargets/{id} | Update One taskTarget |
CreateManyTaskTargets201Response create_many_task_targets(task_target, depth=depth, upsert=upsert)
Create Many taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.create_many_task_targets201_response import CreateManyTaskTargets201Response
from twentycrm_client.models.task_target import TaskTarget
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
task_target = [twentycrm_client.TaskTarget()] # List[TaskTarget] |
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
upsert = False # bool | If true, creates the object or updates it if it already exists. (optional) (default to False)
try:
# Create Many taskTargets
api_response = api_instance.create_many_task_targets(task_target, depth=depth, upsert=upsert)
print("The response of TaskTargetsApi->create_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->create_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| task_target | List[TaskTarget] | ||
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
| upsert | bool | If true, creates the object or updates it if it already exists. | [optional] [default to False] |
CreateManyTaskTargets201Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateOneTaskTarget201Response create_one_task_target(task_target, depth=depth, upsert=upsert)
Create One taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.create_one_task_target201_response import CreateOneTaskTarget201Response
from twentycrm_client.models.task_target import TaskTarget
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
task_target = twentycrm_client.TaskTarget() # TaskTarget | body
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
upsert = False # bool | If true, creates the object or updates it if it already exists. (optional) (default to False)
try:
# Create One taskTarget
api_response = api_instance.create_one_task_target(task_target, depth=depth, upsert=upsert)
print("The response of TaskTargetsApi->create_one_task_target:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->create_one_task_target: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| task_target | TaskTarget | body | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
| upsert | bool | If true, creates the object or updates it if it already exists. | [optional] [default to False] |
CreateOneTaskTarget201Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteManyTaskTargets200Response delete_many_task_targets(filter=filter, soft_delete=soft_delete)
Delete Many taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.delete_many_task_targets200_response import DeleteManyTaskTargets200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
filter = 'createdAt[gte]:\"2023-01-01\"' # str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. (optional)
soft_delete = False # bool | If true, soft deletes the objects. If false, objects are permanently deleted. (optional) (default to False)
try:
# Delete Many taskTargets
api_response = api_instance.delete_many_task_targets(filter=filter, soft_delete=soft_delete)
print("The response of TaskTargetsApi->delete_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->delete_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| filter | str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. | [optional] |
| soft_delete | bool | If true, soft deletes the objects. If false, objects are permanently deleted. | [optional] [default to False] |
DeleteManyTaskTargets200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteOneTaskTarget200Response delete_one_task_target(id, soft_delete=soft_delete)
Delete One taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.delete_one_task_target200_response import DeleteOneTaskTarget200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Object id.
soft_delete = False # bool | If true, soft deletes the objects. If false, objects are permanently deleted. (optional) (default to False)
try:
# Delete One taskTarget
api_response = api_instance.delete_one_task_target(id, soft_delete=soft_delete)
print("The response of TaskTargetsApi->delete_one_task_target:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->delete_one_task_target: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Object id. | |
| soft_delete | bool | If true, soft deletes the objects. If false, objects are permanently deleted. | [optional] [default to False] |
DeleteOneTaskTarget200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FindManyTaskTargets200Response find_many_task_targets(order_by=order_by, filter=filter, limit=limit, depth=depth, starting_after=starting_after, ending_before=ending_before)
Find Many taskTargets
order_by, filter, limit, depth, starting_after or ending_before can be provided to request your taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.find_many_task_targets200_response import FindManyTaskTargets200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
order_by = 'createdAt' # str | Format: **field_name_1,field_name_2[DIRECTION_2] Refer to the filter section at the top of the page for more details. (optional)
filter = 'createdAt[gte]:\"2023-01-01\"' # str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. (optional)
limit = 60 # int | Limits the number of objects returned. (optional) (default to 60)
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
starting_after = 'starting_after_example' # str | Returns objects starting after a specific cursor. You can find cursors in **startCursor** and **endCursor** in **pageInfo** in response data (optional)
ending_before = 'ending_before_example' # str | Returns objects ending before a specific cursor. You can find cursors in **startCursor** and **endCursor** in **pageInfo** in response data (optional)
try:
# Find Many taskTargets
api_response = api_instance.find_many_task_targets(order_by=order_by, filter=filter, limit=limit, depth=depth, starting_after=starting_after, ending_before=ending_before)
print("The response of TaskTargetsApi->find_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->find_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| order_by | str | Format: **field_name_1,field_name_2[DIRECTION_2] Refer to the filter section at the top of the page for more details. | [optional] |
| filter | str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. | [optional] |
| limit | int | Limits the number of objects returned. | [optional] [default to 60] |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
| starting_after | str | Returns objects starting after a specific cursor. You can find cursors in startCursor and endCursor in pageInfo in response data | [optional] |
| ending_before | str | Returns objects ending before a specific cursor. You can find cursors in startCursor and endCursor in pageInfo in response data | [optional] |
FindManyTaskTargets200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FindOneTaskTarget200Response find_one_task_target(id, depth=depth)
Find One taskTarget
depth can be provided to request your taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.find_one_task_target200_response import FindOneTaskTarget200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Object id.
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Find One taskTarget
api_response = api_instance.find_one_task_target(id, depth=depth)
print("The response of TaskTargetsApi->find_one_task_target:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->find_one_task_target: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Object id. | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FindTaskTargetDuplicates200Response find_task_target_duplicates(find_task_target_duplicates_request, depth=depth)
Find taskTarget Duplicates
depth can be provided to request your taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.find_task_target_duplicates200_response import FindTaskTargetDuplicates200Response
from twentycrm_client.models.find_task_target_duplicates_request import FindTaskTargetDuplicatesRequest
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
find_task_target_duplicates_request = twentycrm_client.FindTaskTargetDuplicatesRequest() # FindTaskTargetDuplicatesRequest | body
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Find taskTarget Duplicates
api_response = api_instance.find_task_target_duplicates(find_task_target_duplicates_request, depth=depth)
print("The response of TaskTargetsApi->find_task_target_duplicates:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->find_task_target_duplicates: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| find_task_target_duplicates_request | FindTaskTargetDuplicatesRequest | body | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
FindTaskTargetDuplicates200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupByTaskTargets200Response group_by_task_targets(group_by, filter=filter, order_by=order_by, limit=limit, view_id=view_id, aggregate=aggregate, include_records_sample=include_records_sample, order_by_for_records=order_by_for_records)
Group By taskTargets
Groups taskTargets by specified fields and optionally computes aggregate values for each group.
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.group_by_task_targets200_response import GroupByTaskTargets200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
group_by = '[{\"updatedAt\": true}]' # str | Array of fields to group by. Each element can specify a field and optionally a subfield or granularity for date fields.
filter = 'createdAt[gte]:\"2023-01-01\"' # str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. (optional)
order_by = 'createdAt' # str | Format: **field_name_1,field_name_2[DIRECTION_2] Refer to the filter section at the top of the page for more details. (optional)
limit = 60 # int | Limits the number of objects returned. (optional) (default to 60)
view_id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | View ID to apply filters from. (optional)
aggregate = '[\"countNotEmptyId\"]' # str | Array of aggregate operations to compute for each group. (optional)
include_records_sample = False # bool | If true, includes a sample of records for each group in the response. (optional) (default to False)
order_by_for_records = 'createdAt' # str | Order by clause for records within each group. Only applicable when include_records_sample is true. (optional)
try:
# Group By taskTargets
api_response = api_instance.group_by_task_targets(group_by, filter=filter, order_by=order_by, limit=limit, view_id=view_id, aggregate=aggregate, include_records_sample=include_records_sample, order_by_for_records=order_by_for_records)
print("The response of TaskTargetsApi->group_by_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->group_by_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| group_by | str | Array of fields to group by. Each element can specify a field and optionally a subfield or granularity for date fields. | |
| filter | str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. | [optional] |
| order_by | str | Format: **field_name_1,field_name_2[DIRECTION_2] Refer to the filter section at the top of the page for more details. | [optional] |
| limit | int | Limits the number of objects returned. | [optional] [default to 60] |
| view_id | UUID | View ID to apply filters from. | [optional] |
| aggregate | str | Array of aggregate operations to compute for each group. | [optional] |
| include_records_sample | bool | If true, includes a sample of records for each group in the response. | [optional] [default to False] |
| order_by_for_records | str | Order by clause for records within each group. Only applicable when include_records_sample is true. | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MergeManyTaskTargets200Response merge_many_task_targets(merge_many_task_targets_request, depth=depth)
Merge Many taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.merge_many_task_targets200_response import MergeManyTaskTargets200Response
from twentycrm_client.models.merge_many_task_targets_request import MergeManyTaskTargetsRequest
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
merge_many_task_targets_request = twentycrm_client.MergeManyTaskTargetsRequest() # MergeManyTaskTargetsRequest | body
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Merge Many taskTargets
api_response = api_instance.merge_many_task_targets(merge_many_task_targets_request, depth=depth)
print("The response of TaskTargetsApi->merge_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->merge_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| merge_many_task_targets_request | MergeManyTaskTargetsRequest | body | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
MergeManyTaskTargets200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestoreManyTaskTargets200Response restore_many_task_targets(filter=filter, depth=depth)
Restore Many taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.restore_many_task_targets200_response import RestoreManyTaskTargets200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
filter = 'createdAt[gte]:\"2023-01-01\"' # str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. (optional)
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Restore Many taskTargets
api_response = api_instance.restore_many_task_targets(filter=filter, depth=depth)
print("The response of TaskTargetsApi->restore_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->restore_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| filter | str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. | [optional] |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
RestoreManyTaskTargets200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RestoreOneTaskTarget200Response restore_one_task_target(id, depth=depth)
Restore One taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.restore_one_task_target200_response import RestoreOneTaskTarget200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Object id.
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Restore One taskTarget
api_response = api_instance.restore_one_task_target(id, depth=depth)
print("The response of TaskTargetsApi->restore_one_task_target:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->restore_one_task_target: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Object id. | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
RestoreOneTaskTarget200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateManyTaskTargets200Response update_many_task_targets(task_target_for_update, depth=depth, filter=filter)
Update Many taskTargets
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.task_target_for_update import TaskTargetForUpdate
from twentycrm_client.models.update_many_task_targets200_response import UpdateManyTaskTargets200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
task_target_for_update = twentycrm_client.TaskTargetForUpdate() # TaskTargetForUpdate | body
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
filter = 'createdAt[gte]:\"2023-01-01\"' # str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. (optional)
try:
# Update Many taskTargets
api_response = api_instance.update_many_task_targets(task_target_for_update, depth=depth, filter=filter)
print("The response of TaskTargetsApi->update_many_task_targets:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->update_many_task_targets: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| task_target_for_update | TaskTargetForUpdate | body | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
| filter | str | Format: field[COMPARATOR]:value,field2[COMPARATOR]:value2. For like/ilike, use % as a wildcard (e.g. %value% for substring match). Refer to the filter section at the top of the page for more details. | [optional] |
UpdateManyTaskTargets200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateOneTaskTarget200Response update_one_task_target(id, task_target_for_update, depth=depth)
Update One taskTarget
- Bearer (JWT) Authentication (bearerAuth):
import twentycrm_client
from twentycrm_client.models.task_target_for_update import TaskTargetForUpdate
from twentycrm_client.models.update_one_task_target200_response import UpdateOneTaskTarget200Response
from twentycrm_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://crm.example.com/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = twentycrm_client.Configuration(
host = "https://crm.example.com/rest"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = twentycrm_client.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with twentycrm_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = twentycrm_client.TaskTargetsApi(api_client)
id = UUID('38400000-8cf0-11bd-b23e-10b96e4ef00d') # UUID | Object id.
task_target_for_update = twentycrm_client.TaskTargetForUpdate() # TaskTargetForUpdate | body
depth = 1 # int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations (optional) (default to 1)
try:
# Update One taskTarget
api_response = api_instance.update_one_task_target(id, task_target_for_update, depth=depth)
print("The response of TaskTargetsApi->update_one_task_target:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TaskTargetsApi->update_one_task_target: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | UUID | Object id. | |
| task_target_for_update | TaskTargetForUpdate | body | |
| depth | int | Determines the level of nested related objects to include in the response. - 0: Primary object only - 1: Primary object + direct relations | [optional] [default to 1] |
UpdateOneTaskTarget200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful operation | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]