Skip to content

Cannot merge template #2

@xersion22

Description

@xersion22

I just updated to v 2.0.0 from 1.0.3 and I cannot merge templates now. I get the exception
**[404] Client error: POST https://us1.pdfgeneratorapi.com/api/v3/templates/templateId/output?format=pdf&output=base64 resulted in a 404 Not Found response:
{"error":"None of the templates is available for the workspace.","status":404}
**
Upon looking at the code in file DocumentsApi.php at line 477 you are doing a
str_replace( '{' . 'templateId' . '}', ObjectSerializer::toPathValue($template_id), $resourcePath );

But resource path is templateId not {templateId}. If I replace the code snippet locally with
str_replace( 'templateId', ObjectSerializer::toPathValue($template_id), $resourcePath );

It works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions