All URIs are relative to https://tinq.ai/api/v2

If you are an enterprise customer, check your account for your custom endpoint.

MethodHTTP requestDescription
create_projectPOST /projectsCreate Project
get_all_projectsGET /projects/Get All Projects
get_projectGET /projects/Get Project
update_projectPUT /projects/Update Project

create_project

create_project(body=body)

Create Project

Example

  • Bearer Authentication (bearerAuth):
import tinq
from tinq.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tinq.ai/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = tinq.Configuration(
    host = "https://tinq.ai/api/v2"
)

# 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: bearerAuth
configuration = tinq.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with tinq.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tinq.Projects(api_client)
    body = None # object |  (optional)

    try:
        # Create Project
        api_instance.create_project(body=body)
    except Exception as e:
        print("Exception when calling Projects->create_project: %s\n" % e)

Parameters

NameTypeDescriptionNotes
bodyobject[optional]

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Successful response-

get_all_projects

get_all_projects(order=order, column_sort=column_sort, name=name)

Get All Projects

Get all your projects

Example

  • Bearer Authentication (bearerAuth):
import tinq
from tinq.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tinq.ai/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = tinq.Configuration(
    host = "https://tinq.ai/api/v2"
)

# 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: bearerAuth
configuration = tinq.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with tinq.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tinq.Projects(api_client)
    order = 'DESC' # str |  (optional)
    column_sort = 'created_at' # str |  (optional)
    name = 'name_example' # str |  (optional)

    try:
        # Get All Projects
        api_instance.get_all_projects(order=order, column_sort=column_sort, name=name)
    except Exception as e:
        print("Exception when calling Projects->get_all_projects: %s\n" % e)

Parameters

NameTypeDescriptionNotes
orderstr[optional]
column_sortstr[optional]
namestr[optional]

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Successful response-

get_project

get_project(project)

Get Project

Get a specific project given its identifier

Example

  • Bearer Authentication (bearerAuth):
import tinq
from tinq.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tinq.ai/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = tinq.Configuration(
    host = "https://tinq.ai/api/v2"
)

# 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: bearerAuth
configuration = tinq.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with tinq.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tinq.Projects(api_client)
    project = 'project_example' # str | 

    try:
        # Get Project
        api_instance.get_project(project)
    except Exception as e:
        print("Exception when calling Projects->get_project: %s\n" % e)

Parameters

NameTypeDescriptionNotes
projectstr

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Successful response-

update_project

update_project(project, body=body)

Update Project

Example

  • Bearer Authentication (bearerAuth):
import tinq
from tinq.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://tinq.ai/api/v2
# See configuration.py for a list of all supported configuration parameters.
configuration = tinq.Configuration(
    host = "https://tinq.ai/api/v2"
)

# 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: bearerAuth
configuration = tinq.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with tinq.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tinq.Projects(api_client)
    project = 'project_example' # str | 
    body = None # object |  (optional)

    try:
        # Update Project
        api_instance.update_project(project, body=body)
    except Exception as e:
        print("Exception when calling Projects->update_project: %s\n" % e)

Parameters

NameTypeDescriptionNotes
projectstr
bodyobject[optional]

Return type

void (empty response body)

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Successful response-