post https://api.pactsafe.com/v1.1/contracts//versions
There are a couple of important things to note when creating a new Version for a Contract:
- The latest Version must be published before creating a new Version using the publish endpoint.
- There is a separate publish endpoint to use when publishing a Version:
/v1.1/contracts/{contract_id}/versions/{id}/publish
or/v1.1/contracts/{contract_id}/versions/@latest/publish
. - To get the latest Version or which Version is published, simply tack on
@latest
or@published
to yourGET
call to
/v1.1/contracts/{contract_id}/versions/
.