Releases
All PUT endpoints update only the fields present in the body; see Updating Resources.
GET/v1/products/{productId}/releasesGET /v1/products/{productId}/releases
Code samples
cURL
# You can also use wget
curl -X GET /v1/products/{productId}/releases \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
GET /v1/products/\{productId\}/releases
Gets the product releases based on the provided request.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| productId | path | integer(int32) | true | The product ID. |
| select | query | string | false | none |
| filter | query | string | false | none |
| sort | query | string | false | none |
| take | query | integer(int32) | false | none |
| skip | query | integer(int32) | false | none |
Example responses
200 Response
{"success":true,"code":0,"message":"string","releases":[{"id":0,"releaseDate":"2019-08-24T14:15:22Z","name":"string","version":"string","description":"string","public":true,"requiresMaintenance":true,"releaseNotes":"string","channel":"string"}],"totalReleasesCount":0}{
"success": true,
"code": 0,
"message": "string",
"releases": [
{
"id": 0,
"releaseDate": "2019-08-24T14:15:22Z",
"name": "string",
"version": "string",
"description": "string",
"public": true,
"requiresMaintenance": true,
"releaseNotes": "string",
"channel": "stable"
}
],
"totalReleasesCount": 0
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Management.GetProductReleasesResponse |
Authentication: API key (x-api-key).
POST/v1/products/{productId}/releasesPOST /v1/products/{productId}/releases
Code samples
cURL
# You can also use wget
curl -X POST /v1/products/{productId}/releases \
-H 'Content-Type: application/json-patch+json' \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
POST /v1/products/\{productId\}/releases
Inserts a new product release.
When requiresMaintenance is omitted, the release requires active maintenance (true). Set it to false explicitly for a release that must be available without maintenance. For an application product, the service rejects requiresMaintenance=false unless Updates:AllowPublicApplicationReleases is enabled in the service configuration.
Body parameter
{
"release": {
"id": 0,
"releaseDate": "2019-08-24T14:15:22Z",
"name": "string",
"version": "string",
"description": "string",
"public": true,
"requiresMaintenance": true,
"releaseNotes": "string",
"channel": "stable"
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| productId | path | integer(int32) | true | The product ID. |
| body | body | Management.InsertProductReleaseRequest | false | The request containing the product release to insert. |
Example responses
200 Response
{"releaseId":0,"success":true,"code":0,"message":"string"}{
"releaseId": 0,
"success": true,
"code": 0,
"message": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Management.InsertProductReleaseResponse |
Authentication: API key (x-api-key).
PUT/v1/products/{productId}/releasesPUT /v1/products/{productId}/releases
Code samples
cURL
# You can also use wget
curl -X PUT /v1/products/{productId}/releases \
-H 'Content-Type: application/json-patch+json' \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
PUT /v1/products/\{productId\}/releases
Updates an existing product release.
Fields omitted from the body keep their stored values; see Updating Resources.
Body parameter
{
"release": {
"id": 0,
"releaseDate": "2019-08-24T14:15:22Z",
"name": "string",
"version": "string",
"description": "string",
"public": true,
"requiresMaintenance": true,
"releaseNotes": "string",
"channel": "stable"
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| productId | path | integer(int32) | true | The product ID. |
| body | body | Management.UpdateProductReleaseRequest | false | The request containing the product release to update. |
Example responses
200 Response
{"releaseId":0,"success":true,"code":0,"message":"string"}{
"releaseId": 0,
"success": true,
"code": 0,
"message": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Management.UpdateProductReleaseResponse |
Authentication: API key (x-api-key).
DELETE/v1/products/{productId}/releases/{releaseId}DELETE /v1/products/{productId}/releases/{releaseId}
Code samples
cURL
# You can also use wget
curl -X DELETE /v1/products/{productId}/releases/{releaseId} \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
DELETE /v1/products/\{productId\}/releases/\{releaseId\}
Deletes an existing product release.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| productId | path | integer(int32) | true | The product ID. |
| releaseId | path | integer(int32) | true | The release ID. |
Example responses
200 Response
{"success":true,"code":0,"message":"string"}{
"success": true,
"code": 0,
"message": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | OK | Management.DeleteProductReleaseResponse |
Authentication: API key (x-api-key).