pdf_generator_client.TemplateVariablesApi

All URIs are relative to /api

MethodHTTP requestDescription
createPOST /template-variablesCreate a variable
destroyDELETE /template-variables/{lookup}Delete a variable
listGET /template-variablesList template variables
replacePUT /template-variables/{lookup}Replace a variable
retrieveGET /template-variables/{lookup}Get a variable
updatePATCH /template-variables/{lookup}Update a variable

create

TemplateVariable create(create_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)

Create a variable

Create a new template variable (Admin only)

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.models.create_template_variable_dto import CreateTemplateVariableDto
from pdf_generator_client.models.template_variable import TemplateVariable
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    create_template_variable_dto = pdf_generator_client.CreateTemplateVariableDto() # CreateTemplateVariableDto | 
    limit = 3.4 # float |  (optional)
    offset = 3.4 # float |  (optional)
    order = ['order_example'] # List[str] |  (optional)
    filter = ['filter_example'] # List[str] |  (optional)
    var_or = ['var_or_example'] # List[str] |  (optional)
    expand = ['expand_example'] # List[str] |  (optional)

    try:
        # Create a variable
        api_response = api_instance.create(create_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)
        print("The response of TemplateVariablesApi->create:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->create: %s\n" % e)

Parameters

NameTypeDescriptionNotes
create_template_variable_dtoCreateTemplateVariableDto
limitfloat[optional]
offsetfloat[optional]
orderList[str][optional]
filterList[str][optional]
var_orList[str][optional]
expandList[str][optional]

Return type

TemplateVariable

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXCreate new TemplateVariable-
4XX-
5XX-

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

destroy

destroy(lookup)

Delete a variable

Delete a template variable (Admin only)

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    lookup = 3.4 # float | 

    try:
        # Delete a variable
        api_instance.destroy(lookup)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->destroy: %s\n" % e)

Parameters

NameTypeDescriptionNotes
lookupfloat

Return type

void (empty response body)

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXDelete TemplateVariable by id-
4XX-
5XX-

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

list

TemplateVariableListResponseDto list(limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)

List template variables

List variables, optionally filter by template

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.models.template_variable_list_response_dto import TemplateVariableListResponseDto
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    limit = 3.4 # float |  (optional)
    offset = 3.4 # float |  (optional)
    order = ['order_example'] # List[str] |  (optional)
    filter = ['filter_example'] # List[str] |  (optional)
    var_or = ['var_or_example'] # List[str] |  (optional)
    expand = ['expand_example'] # List[str] |  (optional)

    try:
        # List template variables
        api_response = api_instance.list(limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)
        print("The response of TemplateVariablesApi->list:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->list: %s\n" % e)

Parameters

NameTypeDescriptionNotes
limitfloat[optional]
offsetfloat[optional]
orderList[str][optional]
filterList[str][optional]
var_orList[str][optional]
expandList[str][optional]

Return type

TemplateVariableListResponseDto

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXReturns a list of TemplateVariable-
4XX-
5XX-

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

replace

TemplateVariable replace(lookup, create_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)

Replace a variable

Full replace of a template variable (Admin only)

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.models.create_template_variable_dto import CreateTemplateVariableDto
from pdf_generator_client.models.template_variable import TemplateVariable
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    lookup = 3.4 # float | 
    create_template_variable_dto = pdf_generator_client.CreateTemplateVariableDto() # CreateTemplateVariableDto | 
    limit = 3.4 # float |  (optional)
    offset = 3.4 # float |  (optional)
    order = ['order_example'] # List[str] |  (optional)
    filter = ['filter_example'] # List[str] |  (optional)
    var_or = ['var_or_example'] # List[str] |  (optional)
    expand = ['expand_example'] # List[str] |  (optional)

    try:
        # Replace a variable
        api_response = api_instance.replace(lookup, create_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)
        print("The response of TemplateVariablesApi->replace:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->replace: %s\n" % e)

Parameters

NameTypeDescriptionNotes
lookupfloat
create_template_variable_dtoCreateTemplateVariableDto
limitfloat[optional]
offsetfloat[optional]
orderList[str][optional]
filterList[str][optional]
var_orList[str][optional]
expandList[str][optional]

Return type

TemplateVariable

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXReplace TemplateVariable by id-
4XX-
5XX-

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

retrieve

TemplateVariable retrieve(lookup, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)

Get a variable

Get a single template variable by ID

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.models.template_variable import TemplateVariable
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    lookup = 3.4 # float | 
    limit = 3.4 # float |  (optional)
    offset = 3.4 # float |  (optional)
    order = ['order_example'] # List[str] |  (optional)
    filter = ['filter_example'] # List[str] |  (optional)
    var_or = ['var_or_example'] # List[str] |  (optional)
    expand = ['expand_example'] # List[str] |  (optional)

    try:
        # Get a variable
        api_response = api_instance.retrieve(lookup, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)
        print("The response of TemplateVariablesApi->retrieve:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->retrieve: %s\n" % e)

Parameters

NameTypeDescriptionNotes
lookupfloat
limitfloat[optional]
offsetfloat[optional]
orderList[str][optional]
filterList[str][optional]
var_orList[str][optional]
expandList[str][optional]

Return type

TemplateVariable

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXRetrieve TemplateVariable by id-
4XX-
5XX-

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

update

TemplateVariable update(lookup, update_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)

Update a variable

Update a template variable (Admin only)

Example

  • Api Key Authentication (api-key):
import pdf_generator_client
from pdf_generator_client.models.template_variable import TemplateVariable
from pdf_generator_client.models.update_template_variable_dto import UpdateTemplateVariableDto
from pdf_generator_client.rest import ApiException
from pprint import pprint

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

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

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

# Enter a context with an instance of the API client
with pdf_generator_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = pdf_generator_client.TemplateVariablesApi(api_client)
    lookup = 3.4 # float | 
    update_template_variable_dto = pdf_generator_client.UpdateTemplateVariableDto() # UpdateTemplateVariableDto | 
    limit = 3.4 # float |  (optional)
    offset = 3.4 # float |  (optional)
    order = ['order_example'] # List[str] |  (optional)
    filter = ['filter_example'] # List[str] |  (optional)
    var_or = ['var_or_example'] # List[str] |  (optional)
    expand = ['expand_example'] # List[str] |  (optional)

    try:
        # Update a variable
        api_response = api_instance.update(lookup, update_template_variable_dto, limit=limit, offset=offset, order=order, filter=filter, var_or=var_or, expand=expand)
        print("The response of TemplateVariablesApi->update:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TemplateVariablesApi->update: %s\n" % e)

Parameters

NameTypeDescriptionNotes
lookupfloat
update_template_variable_dtoUpdateTemplateVariableDto
limitfloat[optional]
offsetfloat[optional]
orderList[str][optional]
filterList[str][optional]
var_orList[str][optional]
expandList[str][optional]

Return type

TemplateVariable

Authorization

api-key

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
2XXUpdate/patch TemplateVariable by id-
4XX-
5XX-

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