Version your landscape and create a snapshot in time on your version timeline. This can be run automatically as part of a build or release pipeline.
$export ICEPANEL_API_KEY='your-api-key'$export ICEPANEL_ORGANIZATION_ID='your-organization-id'
Get all landscapes in your organization and select a landscape ID:
1curl https://api.icepanel.io/v1/organizations/organizationId/landscapes \2 -H "X-API-Key: <apiKey>"
Note the id of the landscape:
id
$export ICEPANEL_LANDSCAPE_ID='your-landscape-id'
1curl -X POST https://api.icepanel.io/v1/landscapes/landscapeId/versions \2 -H "X-API-Key: <apiKey>" \3 -H "Content-Type: application/json" \4 -d '{5 "modelHandleId": "string",6 "name": "string",7 "notes": "string"8}'