-
Print
-
DarkLight
-
PDF
Create Version
Method for creating new Version

URL
https://api.corezoid.com/api/2/json/{{API_LOGIN}}/{{TIMESTAMP}}/{{SIGNATURE}}
Request Body
{
"ops": [
{
"type": "create",
"obj": "version",
"vsn": {{VERSION_NUMBER}},
"changelog": {{CHANGELOG}},
"project_id": {{PROJECT_ID}},
"stage_from_id": {{STAGE_ID}},
"company_id": {{COMPANY_ID}}
}
]
}
Parameter | Type | Required | Description | Possible value |
---|---|---|---|---|
ops | JSON Object | + | The list of operations to proceed via Corezoid API. A parameter keeping JSON objects with operations | * The number is user-limited by RPS limit. |
type | string | + | A request type | create |
obj | string | + | An object of request | stage |
vsn | string | + | A Version number | 123.456.789 |
changelog | string | + | A Changelog of the Version | Any valid string |
project_id | number | + | ID of the Project, in which the Version will be created. You can use project_short_name instead |
ID of an existing Project |
project_short_name | string | +* | Short name of the Project, in which the Version will be created, optional. *You can use it instead of the project_id |
Short name of an existing Project |
stage_from_id | number | + | An ID of a Stage, from which you want to create Version | |
company_id | string | + | An ID of an Company | An ID of an existing Company |
Response Body
{
"request_proc": "ok",
"ops": [
{
"id": "",
"proc": "ok",
"obj": "version",
"obj_id": {{VERSION_ID}},
"link": "version_12_777.777.791_123456789.zip"
}
]
}
Parameter | Type | Description | Possible value |
---|---|---|---|
request_proc | string | The overall processing status of all transactions from the request | ok, error |
ops | array | The list of request results | |
id | string | Request ID | empty |
proc | string | The processing status of a specific operation | ok, error |
obj | string | Object of request | version |
obj_id | number | An ID of created Version | |
link | string | Part of URL to downloading Version |