- delete - Delete a translation group
- retrieve - Retrieve a translation group
Delete an entire translation group and all its translations
import novu_py
from novu_py import Novu
with Novu(
secret_key="YOUR_SECRET_KEY_HERE",
) as novu:
novu.translations.groups.delete(resource_type=novu_py.PathParamResourceType.WORKFLOW, resource_id="welcome-email")
# Use the SDK ...
| Parameter |
Type |
Required |
Description |
Example |
resource_type |
models.PathParamResourceType |
✔️ |
Resource type |
workflow |
resource_id |
str |
✔️ |
Resource ID |
welcome-email |
idempotency_key |
Optional[str] |
➖ |
A header for idempotency purposes |
|
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
| Error Type |
Status Code |
Content Type |
| models.APIError |
4XX, 5XX |
*/* |
Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)
import novu_py
from novu_py import Novu
with Novu(
secret_key="YOUR_SECRET_KEY_HERE",
) as novu:
res = novu.translations.groups.retrieve(resource_type=novu_py.TranslationControllerGetTranslationGroupEndpointPathParamResourceType.WORKFLOW, resource_id="welcome-email")
# Handle response
print(res)
models.TranslationGroupDto
| Error Type |
Status Code |
Content Type |
| models.APIError |
4XX, 5XX |
*/* |