(templates.direct_link)
Create a direct link for a template
from documenso_sdk import Documenso
import os
with Documenso(
api_key=os.getenv("DOCUMENSO_API_KEY", ""),
) as documenso:
res = documenso.templates.direct_link.create(template_id=4865.89)
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
template_id |
float | ✔️ | N/A |
direct_recipient_id |
Optional[float] | ➖ | The of the recipient in the current template to transform into the primary recipient when the template is used. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.TemplateCreateTemplateDirectLinkResponseBody
Error Type | Status Code | Content Type |
---|---|---|
models.TemplateCreateTemplateDirectLinkTemplatesDirectLinkResponseBody | 400 | application/json |
models.TemplateCreateTemplateDirectLinkTemplatesDirectLinkResponseResponseBody | 500 | application/json |
models.APIError | 4XX, 5XX | */* |
Delete a direct link for a template
from documenso_sdk import Documenso
import os
with Documenso(
api_key=os.getenv("DOCUMENSO_API_KEY", ""),
) as documenso:
res = documenso.templates.direct_link.delete(template_id=5459.07)
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
template_id |
float | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.TemplateDeleteTemplateDirectLinkResponseBody
Error Type | Status Code | Content Type |
---|---|---|
models.TemplateDeleteTemplateDirectLinkTemplatesDirectLinkResponseBody | 400 | application/json |
models.TemplateDeleteTemplateDirectLinkTemplatesDirectLinkResponseResponseBody | 500 | application/json |
models.APIError | 4XX, 5XX | */* |
Enable or disable a direct link for a template
from documenso_sdk import Documenso
import os
with Documenso(
api_key=os.getenv("DOCUMENSO_API_KEY", ""),
) as documenso:
res = documenso.templates.direct_link.toggle(template_id=722.9, enabled=True)
# Handle response
print(res)
Parameter | Type | Required | Description |
---|---|---|---|
template_id |
float | ✔️ | N/A |
enabled |
bool | ✔️ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.TemplateToggleTemplateDirectLinkResponseBody
Error Type | Status Code | Content Type |
---|---|---|
models.TemplateToggleTemplateDirectLinkTemplatesDirectLinkResponseBody | 400 | application/json |
models.TemplateToggleTemplateDirectLinkTemplatesDirectLinkResponseResponseBody | 500 | application/json |
models.APIError | 4XX, 5XX | */* |