Version

Every time you publish a document in Logic, a new version of that document is created. This allows you to keep track of changes and improvements made to the document over time. Each version has a unique version ID that can be used to reference it.
Learn more about document versions in the Document Versions section.
When you make a document execution, you can specify the version of the document you want to call. This is useful when you need to call a specific version of a document after it has been updated. To specify the version of a document, you can add the version parameter to the URL of the execution request. The parameter should be set to the version ID you want to use.

How to Find the Version ID of a Document

document-versions You can find the version ID of a document in the Logic API dashboard. Each document has a list of versions, and you can select the version you want to use. You can also use the Logic API to list all versions of a document using the GET /documents/{id}/versions endpoint. This will return a list of all versions of the document, along with their version IDs.

Example with version

Below are examples in several languages showing how to specify the version when calling a document execution.
curl -X POST 'https://api.logic.inc/2024-03-01/documents/{document_id}/executions?version={version_id}'
    -H "Authorization: Bearer $LOGIC_API_TOKEN"
    -H "Content-Type: application/json"
    -d '{
        /* your input JSON here */
    }'