Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 3.18 KB

File metadata and controls

35 lines (26 loc) · 3.18 KB

V2LabelsGeneratePostRequest

Properties

Name Type Description Notes
label_template_layout_config T3LabelTemplateLayoutConfig
label_content_layout_config T3LabelContentLayoutConfig
label_content_data_list List[Dict[str, object]] A list of objects, each of which will be filled into one label. Suppose you were to pass the following data, which represents two distinct labels: ```json [ { "package": { "label": "12345" } }, { "package": { "label": "67890" } } ] ``` You could access these values in the content layout template as follows: ``` {{ package.label }} ``` Note: The format of the objects is not validated. Note: Any values with `common` or `images` will be overwritten.
common_content_data object A dictionary of values shared between all labels. Any supplied values will be prefixed with `common.` Suppose you were to pass the following data: ```json { "facilityContactInfo": { "phoneNumber": "123-456-7890" } } ``` You could access this values in the content layout template as follows: ``` {{ facilityContactInfo.phoneNumber }} ``` Note: The format of the object is not validated. [optional]
images object A dictionary of base64 image dadta shared between all labels. Any supplied values will be prefixed with `images.` Suppose you were to pass the following data: ```json { "logo": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMBgKZzmtkAAAAASUVORK5CYII=" } ``` You could access this values in the content layout template as follows: ``` {{ images.logo }} ``` Note: The format of the object is not validated. [optional]
rendering_options T3LabelRenderingOptions [optional]
disposition str Specifies whether the PDF should be opened inline or downloaded as an attachment. [optional] [default to 'inline']

Example

from t3api.models.v2_labels_generate_post_request import V2LabelsGeneratePostRequest

# TODO update the JSON string below
json = "{}"
# create an instance of V2LabelsGeneratePostRequest from a JSON string
v2_labels_generate_post_request_instance = V2LabelsGeneratePostRequest.from_json(json)
# print the JSON string representation of the object
print(V2LabelsGeneratePostRequest.to_json())

# convert the object into a dict
v2_labels_generate_post_request_dict = v2_labels_generate_post_request_instance.to_dict()
# create an instance of V2LabelsGeneratePostRequest from a dict
v2_labels_generate_post_request_from_dict = V2LabelsGeneratePostRequest.from_dict(v2_labels_generate_post_request_dict)

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