curl --request POST \
--url https://platform.versori.com/api/v2/o/{organisation_id}/projects/{project_id}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"files": [
{
"filename": "<string>",
"content": "<string>"
}
],
"description": "<string>",
"labels": {}
}
'{
"id": "<string>",
"name": "<string>",
"state": "draft",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"labels": {}
}Create a new version for a project.
curl --request POST \
--url https://platform.versori.com/api/v2/o/{organisation_id}/projects/{project_id}/versions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"files": [
{
"filename": "<string>",
"content": "<string>"
}
],
"description": "<string>",
"labels": {}
}
'{
"id": "<string>",
"name": "<string>",
"state": "draft",
"createdAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"labels": {}
}Bearer token authentication used by the Versori Platform. External consumers must provide an API key, however internal consumers must provide a JWT id_token issued by our IdP.
OK
The unique identifier for the version.
The short name for this version. This name must be unique within this project.
The state of the version.
draft, failed, ready, superseded The description of this version.
Key-value pairs of strings.