These are the public REST services exposed by the Digital.ai Release server.
You can access the REST API via a URL of the form http://[host]:[port]/[context-root]/[service-resource]
.
For example:
Identifiers
You need to know the identifiers that releases, phases, and tasks have in the database.
Both templates and releases have an ID of the form Applications/ReleaseXXXXXXXXX
, where XXXXXXXXX
is a nine-digit number (all IDs start with Applications/ for technical reasons).
If you have organized templates and releases in folders, their IDs will be of the form Applications/FolderXXXXXXXXX-FolderXXXXXXXXX-ReleaseXXXXXXXXX
.
The fastest way to find the ID of a template or release is to open it in a browser and look at the URL in the location bar.
Take the last part of the URL and add the Applications/
prefix.
If the template or release is in a folder, you must also replace the hyphens (-) with forward slashes (/).
To get the identifiers of phases and tasks, first do a REST call to get the contents of a release, and then inspect the results to find the IDs. |
Properties that start with '$' sign are considered internal properties - i.e. may change between product versions. Please do not rely on those properties to be present. |
Authentication
Most resources require authentication. There are several ways you can authenticate with the Digital.ai Release API.
HTTP Basic Authentication
Users can send username and password via the standard HTTP Basic fields.
$ curl -u username:password 'http://localhost:5516/api/v1/releases' -i -X GET
Users who authenticate in web application through an OIDC provider, for instance Okta or Keycloak, don’t have credentials and can’t use HTTP Basic Authentication. They must generate and use OAuth2 tokens.
Using personal access tokens
Personal access tokens are currently only supported for internal users and external users authenticated via LDAP, Atlassian Crowd. Users can send their personal access token via the login field of HTTP basic authentication, without any username.
$ curl -u :password 'http://localhost:5516/api/v1/releases' -i -X GET
Users can also send it via x-release-personal-token
header.
$ curl --header 'x-release-personal-token: <your_token>' 'http://localhost:5516/api/v1/releases' -i -X GET
Users who authenticate in web application through an external identity provider, for instance Okta or Keycloak, can’t use personal access tokens.
OAuth2 tokens
You can use an OAuth2 token to authenticate with the API by passing it in either the Authorization header.
$ curl 'http://localhost:5516/api/v1/releases' -i -X GET \
-H 'Authorization: Bearer OAUTH2-TOKEN'
Error codes
- 400
-
Sending an invalid
JSON
object or aJSON
object containing incorrect parameters or values will return aBad Request
response:
Can't parse the following as a JSON object:
[{}]
- 401
-
Sending incorrect user/password in the
Authorization
header will return anUnauthorized
response. - 402
-
Having an expired or invalid license will return
Payment required
response. - 403
-
Trying to access endpoints without all the correct permissions will return a
Forbidden
response:
You do not have template#edit on APPLICATIONS permission on Applications/Release126975871.
- 409
-
When
CIs
with the same name exist in the same location, aConflict
error will be returned:
A folder with the title 'Folder 2' already exists under the folder with ID 'Applications'.
- 500
-
If the server can’t process your request, an
Internal Server Error
will be returned.
Finding templates, releases, phases, tasks
This section describes how to use the Digital.ai Release API to retrieve the properties from the main building blocks of the system.
Find template/release by ID
To find a template or release using a specific ID, send this request:
GET /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following parameters
-
for template:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
-
for release:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
Parameter | Description |
---|---|
|
The flag indicating if the release should be decorated with role ids extension; defaults to false |
The response contains a JSON representation of the template/release:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1277
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
Find archived release by ID
To find an archived release using a specific ID, send this request:
GET /api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
Parameter | Description |
---|---|
|
The flag indicating if the release should be decorated with role ids extension; defaults to false |
You will receive the same response as in Find template/release by ID
Find release by title
Note that you cannot find a template by title. |
To find a release using a specific title, send this request:
GET /api/v1/releases/byTitle?releaseTitle=Find%20me
$ curl 'http://localhost:5516/api/v1/releases/byTitle?releaseTitle=Find%20me' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/byTitle?releaseTitle=Find%20me' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The title of the release |
The response contains a list of releases with the specified title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1213
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Find me",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
} ]
Find releases by criteria
To find all releases matching a specific search criteria, send this request:
POST /api/v1/releases/search?page=0&resultsPerPage=100&pageIsOffset=false
{
"title" : "Find me",
"tags" : [ "foo", "bar" ],
"taskTags" : null,
"timeFrame" : "LAST_MONTH",
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : "ASC",
"riskStatusWithThresholds" : null
}
$ curl 'http://localhost:5516/api/v1/releases/search?page=0&resultsPerPage=100&pageIsOffset=false' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "Find me",
"tags" : [ "foo", "bar" ],
"taskTags" : null,
"timeFrame" : "LAST_MONTH",
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : "ASC",
"riskStatusWithThresholds" : null
}'
$ echo '{
"title" : "Find me",
"tags" : [ "foo", "bar" ],
"taskTags" : null,
"timeFrame" : "LAST_MONTH",
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : "ASC",
"riskStatusWithThresholds" : null
}' | http POST 'http://localhost:5516/api/v1/releases/search?page=0&resultsPerPage=100&pageIsOffset=false' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The (optional) page of results to return; defaults at 0 |
|
The (optional) the number of results per page; defaults at 100 |
|
The (optional) flag indicating if page is used as offset; defaults to false |
The following filters are available to be specified in the request body:
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the release title |
|
|
Matches the releases containing all of the specified tags |
|
|
The time-frame to search releases in. Valid values: LAST_MONTH, LAST_THREE_MONTHS, LAST_SIX_MONTHS, LAST_YEAR. Specify RANGE to filter by a custom from-to date range |
|
|
Matches the releases with end date after or equal to this date |
|
|
Matches the releases with start date before this date |
|
|
Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status |
|
|
Matches the releases with the PLANNED status |
|
|
Matches the releases with the IN_PROGRESS status |
|
|
Matches the releases with the PAUSED status |
|
|
Matches the releases with the FAILING status |
|
|
Matches the releases with the FAILED status |
|
|
Matches the releases with the COMPLETED or ABORTED status |
|
|
Matches the releases with the COMPLETED status |
|
|
Matches the releases with the ABORTED status |
|
|
Matches the releases with me as the owner |
|
|
Matches the releases which need attention or are at risk |
|
|
Matches the releases which have been archived |
|
|
Matches the releases stored under this folder |
|
|
The order of the returning set: risk, start_date, end_date, title (only available for templates) |
|
|
The order direction of the returning set: ASC, DESC |
The response contains a list of releases matching the criteria:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1445
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Find me",
"scheduledStartDate" : "2024-05-22T08:22:08.679+02:00",
"dueDate" : "2024-05-22T08:22:08.679+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:08.679+02:00",
"queryableEndDate" : "2024-05-22T08:22:08.679+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ "foo", "bar" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
} ]
Full search releases by criteria
To find all releases matching a specific search criteria grouped by database, send this request:
POST /api/v1/releases/fullSearch?page=0&resultsPerPage=25&archivePage=0&archiveResultsPerPage=25
{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "end_date",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}
$ curl 'http://localhost:5516/api/v1/releases/fullSearch?page=0&resultsPerPage=25&archivePage=0&archiveResultsPerPage=25' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "end_date",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}'
$ echo '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "end_date",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}' | http POST 'http://localhost:5516/api/v1/releases/fullSearch?page=0&resultsPerPage=25&archivePage=0&archiveResultsPerPage=25' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The (optional) page of results to return from the active database; defaults at 0 |
|
The (optional) the number of results per page; from the active database; defaults at 100 |
|
The (optional) page of results to return from the archive database; defaults to page |
|
The (optional) the number of results per page; from the archive database; defaults to resultsPerPage |
The following filters are available to be specified in the request body:
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the release title |
|
|
Matches the releases containing all of the specified tags |
|
|
The time-frame to search releases in. Valid values: LAST_MONTH, LAST_THREE_MONTHS, LAST_SIX_MONTHS, LAST_YEAR. Specify RANGE to filter by a custom from-to date range |
|
|
Matches the releases with end date after or equal to this date |
|
|
Matches the releases with start date before this date |
|
|
Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status |
|
|
Matches the releases with the PLANNED status |
|
|
Matches the releases with the IN_PROGRESS status |
|
|
Matches the releases with the PAUSED status |
|
|
Matches the releases with the FAILING status |
|
|
Matches the releases with the FAILED status |
|
|
Matches the releases with the COMPLETED or ABORTED status |
|
|
Matches the releases with the COMPLETED status |
|
|
Matches the releases with the ABORTED status |
|
|
Matches the releases with me as the owner |
|
|
Matches the releases which need attention or are at risk |
|
|
Matches the releases which have been archived |
|
|
Matches the releases stored under this folder |
|
|
The order of the returning set: risk, start_date, end_date, title (only available for templates) |
|
|
The order direction of the returning set: ASC, DESC |
The response contains a list of grouped results (live, archived) matching the criteria:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 6753
{
"live" : {
"page" : 0,
"size" : 3,
"releases" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Planned Release",
"scheduledStartDate" : "2024-05-22T08:22:09.334+02:00",
"dueDate" : "2024-05-22T16:22:09.334+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:09.334+02:00",
"queryableEndDate" : "2024-05-22T16:22:09.334+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ "foo", "bar" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000"
}, {
"id" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Running Release",
"dueDate" : "2024-05-22T16:17:09.334+02:00",
"startDate" : "2024-05-22T08:17:09.334+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:17:09.334+02:00",
"queryableEndDate" : "2024-05-22T16:17:09.334+02:00",
"realFlagStatus" : "OK",
"status" : "IN_PROGRESS",
"tags" : [ "bar" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000"
}, {
"id" : "Applications/Release9303b354aba041eea4e2486ed81f80c2",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Failed Release",
"dueDate" : "2024-05-22T16:12:09.334+02:00",
"startDate" : "2024-05-22T08:12:09.334+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:12:09.334+02:00",
"queryableEndDate" : "2024-05-22T16:12:09.334+02:00",
"realFlagStatus" : "OK",
"status" : "FAILED",
"tags" : [ "foo" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000"
} ]
},
"archived" : {
"page" : 0,
"size" : 2,
"releases" : [ {
"id" : "Applications/Release4c0a37c875694c97b30fa971fc1ee03c",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Completed Release",
"startDate" : "2024-05-22T00:22:09.334+02:00",
"endDate" : "2024-05-22T08:22:09.334+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T00:22:09.334+02:00",
"queryableEndDate" : "2024-05-22T08:22:09.334+02:00",
"realFlagStatus" : "OK",
"status" : "COMPLETED",
"tags" : [ "bar" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000"
}, {
"id" : "Applications/Release18a1237a6df6409b941ab62a245141cc",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Aborted Release",
"startDate" : "2024-05-21T23:22:09.334+02:00",
"endDate" : "2024-05-22T07:22:09.334+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-21T23:22:09.334+02:00",
"queryableEndDate" : "2024-05-22T07:22:09.334+02:00",
"realFlagStatus" : "OK",
"status" : "ABORTED",
"tags" : [ "foo" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000"
} ]
}
}
Count releases by criteria
To count releases matching a specific search criteria grouped by database, send this request:
POST /api/v1/releases/count
{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : null,
"riskStatusWithThresholds" : null
}
$ curl 'http://localhost:5516/api/v1/releases/count' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : null,
"riskStatusWithThresholds" : null
}'
$ echo '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : true,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : true,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderDirection" : null,
"riskStatusWithThresholds" : null
}' | http POST 'http://localhost:5516/api/v1/releases/count' \
'Content-Type:application/json' \
'Accept:application/json'
The following filters are available to be specified in the request body:
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the release title |
|
|
Matches the releases containing all of the specified tags |
|
|
The time-frame to search releases in. Valid values: LAST_MONTH, LAST_THREE_MONTHS, LAST_SIX_MONTHS, LAST_YEAR. Specify RANGE to filter by a custom from-to date range |
|
|
Matches the releases with end date after or equal to this date |
|
|
Matches the releases with start date before this date |
|
|
Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status |
|
|
Matches the releases with the PLANNED status |
|
|
Matches the releases with the IN_PROGRESS status |
|
|
Matches the releases with the PAUSED status |
|
|
Matches the releases with the FAILING status |
|
|
Matches the releases with the FAILED status |
|
|
Matches the releases with the COMPLETED or ABORTED status |
|
|
Matches the releases with the COMPLETED status |
|
|
Matches the releases with the ABORTED status |
|
|
Matches the releases with me as the owner |
|
|
Matches the releases which need attention or are at risk |
|
|
Matches the releases which have been archived |
|
|
Matches the releases stored under this folder |
|
|
The order of the returning set: risk, start_date, end_date, title (only available for templates) |
|
|
The order direction of the returning set: ASC, DESC |
The response contains number of releases matching a specific search criteria grouped by status and database (live, archived) with combined results (all):
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 402
{
"live" : {
"total" : 3,
"byStatus" : {
"FAILED" : 1,
"IN_PROGRESS" : 1,
"PLANNED" : 1
}
},
"archived" : {
"total" : 2,
"byStatus" : {
"ABORTED" : 1,
"COMPLETED" : 1
}
},
"all" : {
"total" : 5,
"byStatus" : {
"ABORTED" : 1,
"FAILED" : 1,
"IN_PROGRESS" : 1,
"PLANNED" : 1,
"COMPLETED" : 1
}
}
}
Find phase by ID
To find a phase using a specific ID, send this request:
GET /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full phase identifier; for example, Applications/Release1/Phase2 |
The response contains the phase as JSON:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 427
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Phase'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The list of tasks in this phase. |
|
|
The release this phase belongs to. |
|
|
The state the phase is in. |
|
|
The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E' |
|
|
If given, then this phase has been copied as a part of restart phase operation based on this id |
Find task by ID
To find a task using a specific ID, send this request:
GET /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
The response contains the task as JSON:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1087
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:23.085+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Search phases in a release by title
To find a phase in a release using a specific title, send this request:
GET /api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The phase title |
|
Full phase identifier; for example, Applications/Release1/Phase2 |
The response contains a list of phases with the specified title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 348
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "find me",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
} ]
Search phases in a release
To find a phase in a release send this request:
GET /api/v1/phases/search?phaseTitle=DEV&releaseId=Applications/Release162151faba694d03aa3065665cf26f21&phaseVersion=ALL
$ curl 'http://localhost:5516/api/v1/phases/search?phaseTitle=DEV&releaseId=Applications/Release162151faba694d03aa3065665cf26f21&phaseVersion=ALL' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/phases/search?phaseTitle=DEV&releaseId=Applications/Release162151faba694d03aa3065665cf26f21&phaseVersion=ALL' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Part of a phase title |
|
(Full phase identifier; for example, Applications/Release1/Phase2 |
|
Choose between [LATEST, ORIGINAL, ALL] to narrow down search for specific version |
The response contains a list of phases with the specified title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 344
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "DEV",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
} ]
Search tasks in a release by title
To find a task in a release using a specific title, send this request:
GET /api/v1/tasks/byTitle?taskTitle=find%20me&phaseTitle=phase%20title&releaseId=Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/tasks/byTitle?taskTitle=find%20me&phaseTitle=phase%20title&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/tasks/byTitle?taskTitle=find%20me&phaseTitle=phase%20title&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The task title |
|
The phase title |
|
Full identifier of the release; for example, Applications/Release1 |
The response contains a list of tasks with the specified title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 971
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "find me",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:14.407+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ]
Listing planned or active releases
To list a page of planned or active (in_progress, failed, failing) releases send this request:
GET /api/v1/releases?page=0&resultsPerPage=2
$ curl 'http://localhost:5516/api/v1/releases?page=0&resultsPerPage=2' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases?page=0&resultsPerPage=2' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The page to fetch, zero-based; default value is 0 |
|
Number of results per page, default value is 100 |
The response contains a page of planned or active releases sorted in ascending order by start date and title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2518
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
}, {
"id" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "IN_PROGRESS",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
} ]
Listing templates
To list a page of release templates send this request:
GET /api/v1/templates?title=Test%20template&tag=tag1&page=0&resultsPerPage=2
$ curl 'http://localhost:5516/api/v1/templates?title=Test%20template&tag=tag1&page=0&resultsPerPage=2' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/templates?title=Test%20template&tag=tag1&page=0&resultsPerPage=2' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The page to fetch, zero-based; default value is 0 |
|
Number of results per page, default value is 100 |
|
Title of the release |
|
Tag of the release |
The response contains a page of release templates sorted in ascending order by title:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2480
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Test template 1",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ "tag1", "tag2", "tag3" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
}, {
"id" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Test template 2",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ "tag1", "tag2" ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
} ]
Release life cycle
For a detailed description about the release and task life cycle, refer to Digital.ai Release documentation
Create a release from template
If you use the API, you cannot create a release without an existing template. |
To create a new release from a template, send this request:
POST /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create
{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"variables" : { },
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"releaseOwner" : null
}
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"variables" : { },
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"releaseOwner" : null
}'
$ echo '{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"variables" : { },
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"releaseOwner" : null
}' | http POST 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
Release title |
|
|
Release variables |
|
|
Release variables (deprecated - use 'variables') |
|
|
Release password variables (deprecated - use 'variables') |
|
|
Date when the release is supposed to start. |
|
|
If true, the release will automatically start at the scheduledStartDate. |
|
|
If not null, specifies the id of the folder where the release is to be created. |
|
|
If not null, specifies the id the task that created the release, useful when creating releases from scripts |
To create and start the release immediately, use /start instead of /create in the curl command. To schedule a release to start in the future,
set autoStart to true and adjust the scheduledStartDate to the desired date and time.
|
The response contains the new release.
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3378
{
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Releasedce0f87f98d742dd97ee51e5b1d51e27",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "release from api",
"owner" : "admin",
"scheduledStartDate" : "2024-05-22T08:22:06.100+02:00",
"dueDate" : "2024-05-22T16:22:06.100+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"rootReleaseId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:06.100+02:00",
"queryableEndDate" : "2024-05-22T16:22:06.100+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarLinkToken" : "3961230682879770770",
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"originTemplateId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"createdFromTrigger" : false,
"extensions" : [ ],
"startedFromTaskId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"folderVariables" : {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/variables",
"type" : "xlrelease.FolderVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
}
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
If you want to create a release from a template that contains variables that require value, you must specify a value for each variable. For example:
{
"releaseTitle": "release from api",
"variables" : {
"listVar": [ "a", "b" ],
}
}
or if you’re using only string variables and older version of Digital.ai Release:
{
"releaseTitle": "release from api",
"releaseVariables": {
"variable1": "value1"
},
"releasePasswordVariables": {
"passwordVariable": "passwordValue"
}
}
To create a new release from a template with variables, send this request:
POST /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create
{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder16471301a63401435604e56d1303c451",
"variables" : {
"listVar" : [ "a", "b" ],
"stringVar" : "providedValue",
"passwordVar" : "providedValue"
},
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : null,
"releaseOwner" : null
}
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder16471301a63401435604e56d1303c451",
"variables" : {
"listVar" : [ "a", "b" ],
"stringVar" : "providedValue",
"passwordVar" : "providedValue"
},
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : null,
"releaseOwner" : null
}'
$ echo '{
"releaseTitle" : "release from api",
"folderId" : "Applications/Folder16471301a63401435604e56d1303c451",
"variables" : {
"listVar" : [ "a", "b" ],
"stringVar" : "providedValue",
"passwordVar" : "providedValue"
},
"releaseVariables" : { },
"releasePasswordVariables" : { },
"scheduledStartDate" : null,
"autoStart" : false,
"startedFromTaskId" : null,
"releaseOwner" : null
}' | http POST 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/create' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
Release title |
|
|
Release variables |
|
|
Release variables (deprecated - use 'variables') |
|
|
Release password variables (deprecated - use 'variables') |
|
|
Date when the release is supposed to start. |
|
|
If true, the release will automatically start at the scheduledStartDate. |
|
|
If not null, specifies the id of the folder where the release is to be created. |
you will receive following response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 4244
{
"id" : "Applications/Folder16471301a63401435604e56d1303c451/Releaseb210a7f5f73045c693000e70e609aea8",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "release from api",
"owner" : "admin",
"scheduledStartDate" : "2024-05-22T08:22:12.984+02:00",
"dueDate" : "2024-05-22T16:22:12.984+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:12.984+02:00",
"queryableEndDate" : "2024-05-22T16:22:12.984+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ {
"id" : "Applications/Folder16471301a63401435604e56d1303c451/Releaseb210a7f5f73045c693000e70e609aea8/Variablef77942310e8f4b7ab4556ec5204d7b01",
"type" : "xlrelease.StringVariable",
"key" : "stringVar",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "providedValue",
"multiline" : false,
"preventInterpolation" : false
}, {
"id" : "Applications/Folder16471301a63401435604e56d1303c451/Releaseb210a7f5f73045c693000e70e609aea8/Variable6e0563e7dc8548aea146c787407c5dd8",
"type" : "xlrelease.PasswordStringVariable",
"key" : "passwordVar",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "********",
"multiline" : false
}, {
"id" : "Applications/Folder16471301a63401435604e56d1303c451/Releaseb210a7f5f73045c693000e70e609aea8/Variable9b7bc766f8ce466e8c8d7ec5683bbeee",
"type" : "xlrelease.ListStringVariable",
"key" : "listVar",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : [ "a", "b" ]
} ],
"calendarLinkToken" : "-449304601226885408",
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"originTemplateId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"folderVariables" : {
"id" : "Applications/Folder16471301a63401435604e56d1303c451/variables",
"type" : "xlrelease.FolderVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
}
Start a planned release
To start a planned release, send this request:
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
You will receive the same response as in Create a release from template
Get active tasks
To retrieve a list of active tasks from a release, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks' -i -X GET \
-H 'Content-Type: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks' \
'Content-Type:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains a list of active tasks:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1070
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"startDate" : "2024-05-22T08:22:05.940+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Assign a task to a user
To assign a task to a user, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/assign/admin
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/assign/admin' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/assign/admin' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
|
The user name of the assigned user |
The response contains the task as JSON:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1034
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Add a comment to a task
To add a comment to a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/comment
{
"comment" : "Important step in our pipeline"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/comment' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Important step in our pipeline"
}'
$ echo '{
"comment" : "Important step in our pipeline"
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/comment' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the modified task with the added comment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1405
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Comment95da7abc0fef4f818ab27732ab3334a6",
"type" : "xlrelease.Comment",
"text" : "Important step in our pipeline",
"author" : "admin",
"date" : "2024-05-22T08:22:28.107+02:00",
"creationDate" : "2024-05-22T08:22:28.107+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
Complete a task
To complete a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/complete
{
"comment" : "Task completed!"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/complete' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Task completed!"
}'
$ echo '{
"comment" : "Task completed!"
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/complete' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the completed task with the added comment.
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1531
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:20.246+02:00",
"endDate" : "2024-05-22T08:22:20.469+02:00",
"flagStatus" : "OK",
"flagComment" : "",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Commentad784c0c45094b9b9dde9860fa18771b",
"type" : "xlrelease.Comment",
"text" : "Task completed!",
"author" : "admin",
"date" : "2024-05-22T08:22:20.482+02:00",
"creationDate" : "2024-05-22T08:22:20.482+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "COMPLETED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Reopen a task that has been completed in advance
To reopen a task that has been completed in advance, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/reopen
{
"comment" : "Reopen a task that has been completed in advance."
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/reopen' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Reopen a task that has been completed in advance."
}'
$ echo '{
"comment" : "Reopen a task that has been completed in advance."
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/reopen' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the planned task with the added comment.
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1445
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Comment64c7f430178a448dba6427c2bc10add4",
"type" : "xlrelease.Comment",
"text" : "Reopen a task that has been completed in advance.",
"author" : "admin",
"date" : "2024-05-22T08:22:24.760+02:00",
"creationDate" : "2024-05-22T08:22:24.760+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Fail a task
To fail a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/fail
{
"comment" : "Task failed :-("
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/fail' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Task failed :-("
}'
$ echo '{
"comment" : "Task failed :-("
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/fail' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the failed task with the added comment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1459
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:24.092+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Commenta143055551a94ecd96a81e5cd4c75e02",
"type" : "xlrelease.Comment",
"text" : "Task failed :-(",
"author" : "admin",
"date" : "2024-05-22T08:22:24.301+02:00",
"creationDate" : "2024-05-22T08:22:24.301+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "FAILED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 1,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Retry a failed task
To retry a failed task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/retry
{
"comment" : "Retry failed task."
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/retry' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Retry failed task."
}'
$ echo '{
"comment" : "Retry failed task."
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/retry' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the running task with the added comment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1467
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:17.663+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Commenteb38554cf99548ff8ea1e6f833cef81c",
"type" : "xlrelease.Comment",
"text" : "Retry failed task.",
"author" : "admin",
"date" : "2024-05-22T08:22:17.672+02:00",
"creationDate" : "2024-05-22T08:22:17.672+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Skip a task
To skip a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/skip
{
"comment" : "Task skipped"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/skip' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Task skipped"
}'
$ echo '{
"comment" : "Task skipped"
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/skip' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with the action |
The response contains the skipped task and the added comment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1526
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:28.317+02:00",
"endDate" : "2024-05-22T08:22:28.545+02:00",
"flagStatus" : "OK",
"flagComment" : "",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Comment35fa2f12950b46208d4764434f570bfd",
"type" : "xlrelease.Comment",
"text" : "Task skipped",
"author" : "admin",
"date" : "2024-05-22T08:22:28.551+02:00",
"creationDate" : "2024-05-22T08:22:28.551+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "SKIPPED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Abort a task
To abort a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/abort
{
"comment" : "Please abort this task"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/abort' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"comment" : "Please abort this task"
}'
$ echo '{
"comment" : "Please abort this task"
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/abort' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
The comment to associate with abort |
The response contains the aborted task and the added comment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1587
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.ScriptTask",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"owner" : "admin",
"startDate" : "2024-05-22T08:22:15.864+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Comment35bc08d24a87444ea8934c2b224e2f74",
"type" : "xlrelease.Comment",
"text" : "Script aborted by user. Reason: 'Please abort this task'",
"author" : "admin",
"date" : "2024-05-22T08:22:16.247+02:00",
"creationDate" : "2024-05-22T08:22:16.247+02:00"
} ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "FAILED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 1,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"ignoreScriptVariableInterpolation" : false,
"script" : "print(\"${foo}\")"
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Start a task that is waiting for input
To start a task that is waiting for input, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/start
{
"variables" : [ {
"key" : "title",
"value" : "value1",
"type" : "xlrelease.StringVariable",
"id" : "Applications/ReleasesTest/Release1/Variable1"
} ]
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/start' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"variables" : [ {
"key" : "title",
"value" : "value1",
"type" : "xlrelease.StringVariable",
"id" : "Applications/ReleasesTest/Release1/Variable1"
} ]
}'
$ echo '{
"variables" : [ {
"key" : "title",
"value" : "value1",
"type" : "xlrelease.StringVariable",
"id" : "Applications/ReleasesTest/Release1/Variable1"
} ]
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/start' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Path | Type | Description |
---|---|---|
|
|
List of variables |
The response contains the task updated:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1040
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.UserInputTask",
"title" : "This task ${title}",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "WAITING_FOR_INPUT",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"variables" : [ "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b" ]
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
|
|
List of variables |
Abort a release
If a release is in status IN_PROGRESS
, you can stop and abort it by using the following command:
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/abort
{
"abortComment" : "Abort comment"
}
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/abort' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"abortComment" : "Abort comment"
}'
$ echo '{
"abortComment" : "Abort comment"
}' | http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/abort' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains the release aborted:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1321
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Running release, don't abort me",
"endDate" : "2024-05-22T08:21:54.519+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableEndDate" : "2024-05-22T08:21:54.519+02:00",
"realFlagStatus" : "OK",
"status" : "ABORTED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"abortComment" : "Abort comment",
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
Resume release
Resume a release that had been paused as part of the restart operation.
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains the resumed release:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 4560
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"startDate" : "2024-05-22T08:21:53.323+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"endDate" : "2024-05-22T08:21:52.405+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "SKIPPED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "SKIPPED"
}, {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase53228aef3564406aa3933efb0f6dfe26",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase53228aef3564406aa3933efb0f6dfe26",
"startDate" : "2024-05-22T08:21:53.327+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase53228aef3564406aa3933efb0f6dfe26/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase53228aef3564406aa3933efb0f6dfe26/Task97c27091a9b342599e1b631dc6d44726",
"startDate" : "2024-05-22T08:21:53.356+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase53228aef3564406aa3933efb0f6dfe26",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "IN_PROGRESS"
} ],
"queryableStartDate" : "2024-05-22T08:21:53.323+02:00",
"realFlagStatus" : "OK",
"status" : "IN_PROGRESS",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
Restart a phase
Restarts the release from a given phase and task.
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/restart?fromPhaseId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&fromTaskId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726&phaseVersion=ALL&resume=true
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/restart?fromPhaseId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&fromTaskId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726&phaseVersion=ALL&resume=true' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/restart?fromPhaseId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&fromTaskId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726&phaseVersion=ALL&resume=true' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
Parameter | Description |
---|---|
|
Full identifier of the phase; for example, Applications/Release1/Phase11 |
|
Full identifier of the task; for example, Applications/Release1/Phase11/Task111 |
|
'LATEST', or 'ORIGINAL' or old behavior 'ALL'. Determines which version to copy of the phase. |
|
When true resumes the paused release immediately |
The response contains the restarted release:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 4828
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"startDate" : "2024-05-22T08:21:58.266+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"startDate" : "2024-05-22T08:21:58.160+02:00",
"endDate" : "2024-05-22T08:21:58.160+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"startDate" : "2024-05-22T08:21:57.816+02:00",
"endDate" : "2024-05-22T08:21:58.161+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "SKIPPED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "SKIPPED"
}, {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phasee4a908720791454ebf2a4d54f158a948",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e (1)",
"startDate" : "2024-05-22T08:21:58.266+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phasee4a908720791454ebf2a4d54f158a948/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"startDate" : "2024-05-22T08:21:58.267+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phasee4a908720791454ebf2a4d54f158a948",
"facets" : [ ],
"attachments" : [ ],
"status" : "IN_PROGRESS",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
} ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "IN_PROGRESS",
"originId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e"
} ],
"queryableStartDate" : "2024-05-22T08:21:58.266+02:00",
"realFlagStatus" : "OK",
"status" : "IN_PROGRESS",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 1,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
Building templates and releases
For a details description on templates and releases, refer to Core concepts of Digital.ai Release
Templates
Create a template
To create a new template, send this request:
POST /api/v1/templates/?folderId=Applications/Folder01345a690c16b345168751d62934e912
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.966+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.966+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}
$ curl 'http://localhost:5516/api/v1/templates/?folderId=Applications/Folder01345a690c16b345168751d62934e912' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.966+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.966+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.966+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.966+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}' | http POST 'http://localhost:5516/api/v1/templates/?folderId=Applications/Folder01345a690c16b345168751d62934e912' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following fields:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
Using the following query parameters:
Parameter | Description |
---|---|
|
If not null, specifies the id of the folder where the template is to be created |
The response contains the template JSON:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5407
{
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Release3ecc388e91ef43e1bd7c67af53d0e5a2",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.966+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Team47612d8c4427499cb481f54878b292d5",
"type" : "xlrelease.Team",
"teamName" : "Template Owner",
"members" : [ "admin" ],
"roles" : [ ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ]
}, {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Team071b32da2c924196ae1ea5c2903b609f",
"type" : "xlrelease.Team",
"teamName" : "Release Admin",
"members" : [ "admin" ],
"roles" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ]
}, {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Team848a71b8575f4deab0befc612031f37c",
"type" : "xlrelease.Team",
"teamName" : "Folder Owner",
"members" : [ "admin" ],
"roles" : [ ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration" ]
} ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Release3ecc388e91ef43e1bd7c67af53d0e5a2/Phasec8461abce42a4abcb98688236187cedc",
"type" : "xlrelease.Phase",
"title" : "New Phase",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Folder01345a690c16b345168751d62934e912/Release3ecc388e91ef43e1bd7c67af53d0e5a2",
"status" : "PLANNED"
} ],
"queryableStartDate" : "2024-05-22T08:22:07.966+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"folderVariables" : {
"id" : "Applications/Folder01345a690c16b345168751d62934e912/variables",
"type" : "xlrelease.FolderVariables",
"variables" : [ ]
},
"serverUrl" : { }
}
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
Import a template, serialized in XLR format, or a Releasefile (Releasefile.groovy) inside a .zip file
You can also import templates that were previously exported using Digital.ai Release. Send the .xlr
or .zip
file to /api/v1/templates/import
with header Content-type: multipart/form-data
. It’s possible to add the query parameter folderId
to specify under which folder the template will be imported.
To import a template, send this request:
$ curl 'http://localhost:5516/api/v1/templates/import' --form file=@template.xlr
$ http -f POST http://localhost:5516/api/v1/templates/import file@template.xlr
Refer to Release life cycle for more information about starting the release
Make a template copy
It’s possible to duplicate a template in the same folder where it lives:
POST /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/copy
{
"title" : "My template copy title",
"description" : "My template copy description"
}
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/copy' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "My template copy title",
"description" : "My template copy description"
}'
$ echo '{
"title" : "My template copy title",
"description" : "My template copy description"
}' | http POST 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/copy' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following request:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
The new title of the template. Mandatory |
|
|
The new description. Optional |
The response contains the template JSON:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1297
{
"id" : "Applications/Release2f5ffd0339714b80ac5af468c5f9e8ff",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "My template copy title",
"description" : "My template copy description",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
Phases
The following operations are valid for both templates and releases.
Add a phase to a release
After creating a new template or a release, you can add phases to it. To add a new phase, send this request:
POST /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/phase
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/phase' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}' | http POST 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/phase' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the template/release; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Phase'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The list of tasks in this phase. |
|
|
The release this phase belongs to. |
|
|
The state the phase is in. |
|
|
The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E' |
|
|
If given, then this phase has been copied as a part of restart phase operation based on this id |
The response contains the created phase:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 427
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase7805420e8d2449caa988a91c44881d7d",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Phase'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The list of tasks in this phase. |
|
|
The release this phase belongs to. |
|
|
The state the phase is in. |
|
|
The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E' |
|
|
If given, then this phase has been copied as a part of restart phase operation based on this id |
Copy a phase in a release
You can easily copy a phase and paste into desirable position. XLR has several restrictions for copying a phase:
-
Position should be next to planned or in progress phase.
-
You cannot copy completed phase
Usage example:
POST /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the phase; for example, Applications/Release1/Phase2 |
Using the following query parameters:
Parameter | Description |
---|---|
|
Phase position into release |
The response contains the created phase:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1554
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phaseea9f84812cf84313aa39aed18a742d32",
"type" : "xlrelease.Phase",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e (copy)",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phaseea9f84812cf84313aa39aed18a742d32/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.GateTask",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phaseea9f84812cf84313aa39aed18a742d32",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"conditions" : [ ],
"dependencies" : [ ]
} ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#00FF00"
}
Update phase in a release
To update a phase in a release or in a template, send this request:
PUT /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "new title",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#FFFF00"
}
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "new title",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#FFFF00"
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "new title",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#FFFF00"
}' | http PUT 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full phase identifier; for example, Applications/Release1/Phase2 |
Using the following query parameters:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Phase'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The list of tasks in this phase. |
|
|
The release this phase belongs to. |
|
|
The state the phase is in. |
|
|
The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E' |
|
|
If given, then this phase has been copied as a part of restart phase operation based on this id |
The response contains the updated phase:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 346
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"type" : "xlrelease.Phase",
"title" : "new title",
"flagStatus" : "OK",
"overdueNotified" : false,
"tasks" : [ ],
"release" : "Applications/Release162151faba694d03aa3065665cf26f21",
"status" : "PLANNED",
"color" : "#FFFF00"
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Phase'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The list of tasks in this phase. |
|
|
The release this phase belongs to. |
|
|
The state the phase is in. |
|
|
The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E' |
|
|
If given, then this phase has been copied as a part of restart phase operation based on this id |
Tasks
Add a task in a phase or in another task
To add a new task in a phase or in another task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks
{
"id" : "null",
"type" : "xlrelease.UserInputTask",
"title" : "input task"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "null",
"type" : "xlrelease.UserInputTask",
"title" : "input task"
}'
$ echo '{
"id" : "null",
"type" : "xlrelease.UserInputTask",
"title" : "input task"
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task container: either a Phase, a ParallelGroup or a SequentialGroup; for example Applications/Release1/Phase2 |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the task. |
You can use more fields in the request like status , overdueNotified , etc…
|
The response contains the created task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 926
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Taskb0258ade035b4d5194d6ea6987a4c1c4",
"type" : "xlrelease.UserInputTask",
"title" : "input task",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"variables" : [ ]
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
|
|
List of variables |
Add a task to a specific position inside a phase
To add a new task to a specified position, send this request:
POST /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks?position=0
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.UserInputTask",
"title" : "input task",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks?position=0' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.UserInputTask",
"title" : "input task",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.UserInputTask",
"title" : "input task",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}' | http POST 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks?position=0' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The position in the phase, zero-based; leave empty to add the task to the end of the phase |
Parameter | Description |
---|---|
|
Full identifier of the task container: either a Phase, a ParallelGroup or a SequentialGroup; for example Applications/Release1/Phase2 |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
The response contains the created task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 926
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task4d19498ee1784b6c9d23ac6b2e762b5c",
"type" : "xlrelease.UserInputTask",
"title" : "input task",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"variables" : [ ]
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
|
|
List of variables |
Copy a task to a specific position inside a phase
To copy a task to a specified position, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1' -i -X POST
$ http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
Using the following query parameters:
Parameter | Description |
---|---|
|
Full identifier of the task container; for example, Applications/Release1/Phase3 |
|
Position within task container |
The response contains the created task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1070
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task1beef200edfc4f24a0f2b42141d0425e",
"type" : "xlrelease.GateTask",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726 (copy)",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"conditions" : [ ],
"dependencies" : [ ]
}
Update the task for a specific ID
To update a task for a specific ID, send this request:
PUT /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "new title"
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "new title"
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "new title"
}' | http PUT 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The updated task object; only top-level properties will be updated. |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the task. |
The response contains the updated task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 895
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.Task",
"title" : "new title",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Task'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
Task types
In Digital.ai Release each task has a type: some tasks are manual and some tasks can be automatic. See Task types for the list of types and explanation about them.
From the technical point of view there are core task types like: xlrelease.Task
, xlrelease.ParallelGroup
, and "extension" tasks introduced by the plugins. For the extension tasks the type is always the same: xlrelease.CustomScriptTask
. This kind of task always contains a child property called pythonScript
which contains the actual type and custom properties of the task. That is also why when you create a new custom task you extend from type xlrelease.PythonScript
and not from xlrelease.CustomScriptTask
. See Create custom task types. For example, here is a model of a Jenkins build task (showing only important fields):
{
"id": "Applications/Folder6723679/Release640465921/Phase394617260/Task110995606",
"type": "xlrelease.CustomScriptTask",
"pythonScript": {
"type": "jenkins.Build"
"id": "Applications/Folder6723679/Release640465921/Phase394617260/Task110995606/PythonScript",
"jenkinsServer": "Configuration/Custom/Configuration8602147",
"buildStatus": "SUCCESS",
"buildNumber": "5"
}
}
Here is the list of the types that you get in a default installation of Digital.ai Release.
Task | Task Type | Extension Type |
---|---|---|
Gate |
xlrelease.GateTask |
- |
Manual |
xlrelease.Task |
- |
User Input |
xlrelease.UserInputTask |
- |
Create Release |
xlrelease.CreateReleaseTask |
- |
Jenkins |
xlrelease.CustomScriptTask |
jenkins.Build |
JIRA Create Issue |
xlrelease.CustomScriptTask |
jira.CreateIssue |
JIRA Create Subtask |
xlrelease.CustomScriptTask |
jira.CreateSubtask |
JIRA Query |
xlrelease.CustomScriptTask |
jira.Query |
Jira Update Issue |
xlrelease.CustomScriptTask |
jira.UpdateIssue |
Jira Update Issues |
xlrelease.CustomScriptTask |
jira.UpdateIssues |
Jira Update Issues by Query |
xlrelease.CustomScriptTask |
jira.UpdateIssuesByQuery |
Jira Query |
xlrelease.CustomScriptTask |
jira.Query |
Notification |
xlrelease.NotificationTask |
- |
Remote Unix script |
xlrelease.CustomScriptTask |
remoteScript.Unix |
Remote Win script |
xlrelease.CustomScriptTask |
remoteScript.Windows |
Remote Win SSH script |
xlrelease.CustomScriptTask |
remoteScript.WindowsSsh |
Remote Z/os script |
xlrelease.CustomScriptTask |
remoteScript.Zos |
Jython script |
xlrelease.ScriptTask |
- |
Groovy script |
xlrelease.GroovyScriptTask |
- |
Webhook XML |
xlrelease.CustomScriptTask |
webhook.XmlWebhook |
Webhook JSON |
xlrelease.CustomScriptTask |
webhook.JsonWebhook |
XL Deploy |
xlrelease.CustomScriptTask |
xldeploy.Deploy |
Change task type
You can change the type of a task. The target task type can be a core task type such as xlrelease.GateTask
or a custom script definition type such as jenkins.Build
.
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/changeType?targetType=xlrelease.GateTask
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/changeType?targetType=xlrelease.GateTask' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/changeType?targetType=xlrelease.GateTask' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Target task type; for example, targetType=xlrelease.Task or targetType=jenkins.Build |
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
The response contains the updated task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1063
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"type" : "xlrelease.GateTask",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"flagStatus" : "OK",
"overdueNotified" : false,
"comments" : [ ],
"container" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e",
"facets" : [ ],
"attachments" : [ ],
"status" : "PLANNED",
"watchers" : [ ],
"waitForScheduledStartDate" : true,
"delayDuringBlackout" : false,
"postponedDueToBlackout" : false,
"postponedUntilEnvironmentsAreReserved" : false,
"hasBeenFlagged" : false,
"hasBeenDelayed" : false,
"taskFailureHandlerEnabled" : false,
"failuresCount" : 0,
"variableMapping" : { },
"externalVariableMapping" : { },
"tags" : [ ],
"dueSoonNotified" : false,
"locked" : false,
"checkAttributes" : false,
"conditions" : [ ],
"dependencies" : [ ]
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.GateTask'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The comments on the task. |
|
|
The phase or task this task is contained in. |
|
|
Facets applied to the task. |
|
|
List of file attachments on this task. |
|
|
The state the task is in. |
|
|
The name of the team this task is assigned to. |
|
|
The watchers assigned to this task. |
|
|
The task is not started until the scheduledStartDate is reached if set to true. |
|
|
The task is to be delayed when a blackout period is active. |
|
|
A snippet of code that is evaluated when the task is started. |
|
|
A snippet of code that is evaluated when the task is failed. |
|
|
The failed script will be executed. |
|
|
Task recovery operation performed after task failure. |
|
|
The number of times this task has failed. |
|
|
Map from property name to a variable name that replaces that property |
|
|
Similar to variableMapping, but only for password variables with external values and it is managed internally. |
|
|
The tags of the task. Tags can be used for grouping and querying. |
|
|
The task is locked |
|
|
Check attributes on task execution |
|
|
Conditions |
|
|
Dependencies |
Lock/unlock task
Lock task
To lock a task, send this request:
PUT /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' -i -X PUT \
-H 'Accept: application/json'
$ http PUT 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' \
'Accept:application/json'
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Unlock task
To unlock a task, send this request:
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' \
'Accept:application/json'
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Gate tasks
Add a condition to a gate task
To add a condition to a gate task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/conditions
{
"title" : "this must be true to go on",
"checked" : false
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/conditions' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "this must be true to go on",
"checked" : false
}'
$ echo '{
"title" : "this must be true to go on",
"checked" : false
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/conditions' \
'Content-Type:application/json' \
'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Title of condition |
|
|
Condition checked |
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
The response contains the created gate condition:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 289
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateConditionb7f03e1e55f0449b837976c11c01f19f",
"type" : "xlrelease.GateCondition",
"title" : "this must be true to go on",
"checked" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.GateCondition'. |
|
|
Title |
|
|
Checked |
Update a condition on a gate task
To (un)check the condition on a gate task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1
{
"title" : "my first condition",
"checked" : true
}
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "my first condition",
"checked" : true
}'
$ echo '{
"title" : "my first condition",
"checked" : true
}' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1' \
'Content-Type:application/json' \
'Accept:application/json'
Path | Type | Description |
---|---|---|
|
|
Title of condition |
|
|
Condition checked |
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the condition; for example, Applications/Release1/Phase2/Task3/GateCondition1 |
The response contains the updated gate condition:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 249
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1",
"type" : "xlrelease.GateCondition",
"title" : "my first condition",
"checked" : true
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.GateCondition'. |
|
|
Title |
|
|
Checked |
Delete a condition from a gate task
To delete a condition from a gate task, send this request:
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the condition; for example, Applications/Release1/Phase2/Task3/GateCondition1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Add a dependency to a gate task
To add a dependency to a gate task, send this request:
POST /api/v1/tasks/Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/dependencies/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/dependencies/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/tasks/Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/dependencies/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the gate task; for example, Applications/Release1/Phase2/Task3 |
|
Full identifier of the release, phase or task that the gate will depend on, or a variable which will resolve to such an identifier. When using a variable you can also combine variables, for example "Applications/${shortReleaseId}". Note that in this case you need to do URL encoding of the variable name. |
The response contains the new dependency:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 688
{
"id" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency6f2e0c37dbdf436a81895b29cb6966aa",
"type" : "xlrelease.Dependency",
"gateTask" : "Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"target" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"archivedAsResolved" : false
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Dependency'. |
|
|
The source gate task from the dependency. |
|
|
The target of the dependency (release, phase, or task). |
|
|
The target ID of the dependency (when it is filled, the |
|
|
The target title once it is archived. |
|
|
The target ID once it is archived. |
|
|
Shows if the plan item was |
Delete a dependency to a gate task
To delete a dependency to a gate task, send this request:
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the dependency; for example, Applications/Release1/Phase2/Task3/Dependency0 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Attachments
Download an attachment
To download an attachment, send this request:
GET /api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65
$ curl 'http://localhost:5516/api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65' -i -X GET \
-H 'Accept: application/octet-stream'
$ http GET 'http://localhost:5516/api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65' \
'Accept:application/octet-stream'
Using the following parameter:
Parameter | Description |
---|---|
|
Full identifier of the attachment; for example, Applications/Release1/Attachment1 |
You will receive the attachment file in the response.
Add attachments to a task
To upload a list of attachments to a task, send this request:
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments
-----011000010111000001101001
Content-Disposition: form-data; name="xlr"; filename="Dummy.xml"
Content-Type: application/xml
-----011000010111000001101001--
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments' -i -X POST \
-H 'Content-Type: multipart/form-data;boundary=---011000010111000001101001' \
-H 'Accept: multipart/form-data, application/json' \
-d '-----011000010111000001101001
Content-Disposition: form-data; name="xlr"; filename="Dummy.xml"
Content-Type: application/xml
-----011000010111000001101001--
'
$ echo '-----011000010111000001101001
Content-Disposition: form-data; name="xlr"; filename="Dummy.xml"
Content-Type: application/xml
-----011000010111000001101001--
' | http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments' \
'Content-Type:multipart/form-data;boundary=---011000010111000001101001' \
'Accept:multipart/form-data, application/json'
Using the following parameter:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
You will receive a response containing a list of uploaded attachments:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 396
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Attachmentc3aa83f4b17148bc88a8fc933d3ad4aa",
"type" : "xlrelease.Attachment",
"contentType" : "application/xml",
"exportFilename" : "attachments/Attachmentc3aa83f4b17148bc88a8fc933d3ad4aa-Dummy.xml",
"fileUri" : "sql:Applications%2FRelease162151faba694d03aa3065665cf26f21%2FAttachmentc3aa83f4b17148bc88a8fc933d3ad4aa"
} ]
Delete attachment from a task
To delete an attachment from a task, send this request:
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
|
Full identifier of the attachment; for example, Applications/Release1/Attachment1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Properties
Update template properties
To update the properties of a template, send this request:
PUT /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.527+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.527+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.527+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.527+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.527+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.527+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}' | http PUT 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
The response the updated template:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1393
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "Applications/Release162151faba694d03aa3065665cf26f21",
"scheduledStartDate" : "2024-05-22T08:22:07.527+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:07.527+02:00",
"realFlagStatus" : "OK",
"status" : "TEMPLATE",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
Update release properties
To update the properties of a release, send this request:
PUT /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "new title",
"scheduledStartDate" : "2024-05-22T08:22:00.101+02:00",
"dueDate" : "2024-05-22T08:22:00.101+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:00.101+02:00",
"queryableEndDate" : "2024-05-22T08:22:00.101+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "new title",
"scheduledStartDate" : "2024-05-22T08:22:00.101+02:00",
"dueDate" : "2024-05-22T08:22:00.101+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:00.101+02:00",
"queryableEndDate" : "2024-05-22T08:22:00.101+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"title" : "new title",
"scheduledStartDate" : "2024-05-22T08:22:00.101+02:00",
"dueDate" : "2024-05-22T08:22:00.101+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:00.101+02:00",
"queryableEndDate" : "2024-05-22T08:22:00.101+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"globalVariables" : null,
"folderVariables" : null
}
}' | http PUT 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
The response contains the updated release:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1452
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21",
"type" : "xlrelease.Release",
"$scmTraceabilityDataId" : "0",
"title" : "new title",
"scheduledStartDate" : "2024-05-22T08:22:00.101+02:00",
"dueDate" : "2024-05-22T08:22:00.101+02:00",
"flagStatus" : "OK",
"overdueNotified" : false,
"maxConcurrentReleases" : 100,
"releaseTriggers" : [ ],
"teams" : [ ],
"memberViewers" : [ ],
"roleViewers" : [ ],
"attachments" : [ ],
"phases" : [ ],
"queryableStartDate" : "2024-05-22T08:22:00.101+02:00",
"queryableEndDate" : "2024-05-22T08:22:00.101+02:00",
"realFlagStatus" : "OK",
"status" : "PLANNED",
"tags" : [ ],
"variables" : [ ],
"calendarPublished" : false,
"tutorial" : false,
"abortOnFailure" : false,
"archiveRelease" : true,
"allowPasswordsInAllFields" : false,
"disableNotifications" : false,
"allowConcurrentReleasesFromTrigger" : true,
"createdFromTrigger" : false,
"extensions" : [ ],
"autoStart" : false,
"automatedResumeCount" : 0,
"variableMapping" : { },
"riskProfile" : "Configuration/riskProfiles/RiskProfileDefault",
"riskScore" : "000",
"totalRiskScore" : "0000",
"$metadata" : {
"security" : {
"permissions" : [ ],
"teams" : [ ]
},
"globalVariables" : {
"id" : "Configuration/variables/global",
"type" : "xlrelease.GlobalVariables",
"variables" : [ ]
},
"serverUrl" : { },
"blackout" : { }
}
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Release'. |
|
|
The title of the item. |
|
|
The description of the item. |
|
|
The owner of the item. |
|
|
The date that the item is supposed to start. |
|
|
The date that the item is supposed to end. |
|
|
The actual start date. |
|
|
The actual end date. |
|
|
The time that the item is supposed to take to complete, in seconds. |
|
|
Flags indicate that an item needs attention. |
|
|
The reason the item is flagged. |
|
|
The triggers that may start a release from a template. (Templates only) |
|
|
The teams configured on the release. |
|
|
File attachments of the release. |
|
|
The list of phases in the release. |
|
|
The calculated flag status, derived from the flags from the release and its tasks. |
|
|
The state the release is in. |
|
|
The tags of the release. Tags can be used for grouping and querying. |
|
|
List of variable CIs representing variables in this release or template |
|
|
Releases automatically abort when a task fails if this property is set to true. |
|
|
Archive release |
|
|
Allows the usage of passwords in non-password fields. Passwords values are masked in the UI and logging output but are decrypted before the task execution. |
|
|
Disable all notifications for this release. |
|
|
If set to false, a trigger can’t create a release if the previous one it created is still running. |
|
|
The ID of the template that created this release. |
|
|
True if release was created by a trigger. |
|
|
The credentials of this user are used to run automated scripts in this release. |
|
|
The password of the user that lends his credentials to run the scripts. |
|
|
Extensions of this release, e.g. 'Release contents dashboard' |
|
|
The Create Release task from which this release was created, if any |
|
|
ID of the Release from which this release was created, if any |
|
|
If true, the release will automatically start at scheduledStartDate. |
|
|
The comment to associate with the action |
|
|
Map from property name to a variable name that replaces that property |
|
|
Risk profile used in risk calculations |
|
|
Risk score |
|
|
Total risk score |
Delete commands for task, phase, template, or release
Delete a task
To delete a task, send this request:
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Delete a phase
To delete a phase, send this request:
DELETE /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e'
Using the following parameters:
Parameter | Description |
---|---|
|
Full phase identifier; for example, Applications/Release1/Phase2 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Delete template
To delete a template, send this request:
DELETE /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Delete release
To delete a release, it must be in aborted or done status.
|
To delete a release, send this request:
DELETE /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
You cannot delete a phase from a template or release. |
Export template
To export template in .xlr format, send this request:
Do not use -i with curl |
GET /api/v1/templates/zip/Applications/Release51f630afd86147de9cec79ad0a1a3fe9
$ curl 'http://localhost:5516/api/v1/templates/zip/Applications/Release51f630afd86147de9cec79ad0a1a3fe9' -i -X GET \
-H 'Accept: */*'
$ http GET 'http://localhost:5516/api/v1/templates/zip/Applications/Release51f630afd86147de9cec79ad0a1a3fe9' \
'Accept:*/*'
The response contains the zip file content:
HTTP/1.1 200 OK
Content-Language: en
Content-Disposition: attachment; filename="Test template 1.xlr"
Content-Type: application/zip
We didn’t display response of the zip file in this example. |
Folders
In Digital.ai Release folders can be used to organize templates and releases. You can operate with folders using the Folders API.
Listing the root folders
To list the root folders, send this request:
GET /api/v1/folders/list?depth=1
$ curl 'http://localhost:5516/api/v1/folders/list?depth=1' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/list?depth=1' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The (optional) depth to search for; defaults at 1 |
|
The (optional) boolean to decorate the folders with the effective permissions; defaults with false |
|
The (optional) page of results to return; defaults at 0 |
|
The (optional) the number of results per page; defaults at 50 |
You receive a response containing a list of folders:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 327
[ {
"id" : "Applications/Folderf901223fc5114e149564486d60ea0c29",
"type" : "xlrelease.Folder",
"$token" : "0a79f100-cdff-4efb-a522-166e7d3ca257",
"title" : "Microservices",
"children" : [ ],
"$metadata" : {
"security" : {
"permissions" : [ "folder#view", "folder#edit" ],
"teams" : [ ]
}
}
} ]
All the folders in the response and their description and properties:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Folder'. |
|
|
User provided title of the folder |
|
|
Sub-folders of this folder |
Creating folders
You can create a new sub-folder under any folder, including the Applications
root folder.
For example, to create a top-level folder titled "New folder", send this request:
POST /api/v1/folders/Applications
{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "New folder",
"children" : [ ]
}
$ curl 'http://localhost:5516/api/v1/folders/Applications' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "New folder",
"children" : [ ]
}'
$ echo '{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "New folder",
"children" : [ ]
}' | http POST 'http://localhost:5516/api/v1/folders/Applications' \
'Content-Type:application/json'
Using the following parameters:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Folder'. |
|
|
User provided title of the folder |
|
|
Sub-folders of this folder |
You receive the created folder as a response containing its normal fields.
Listing folders inside another folder
To receive a list of all the folders that are contained by another folder, send this request:
GET /api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The (optional) depth to search for; defaults at 1 |
|
The (optional) boolean to decorate the folders with the effective permissions; defaults with false |
|
The (optional) page of results to return; defaults at 0 |
|
The (optional) the number of results per page; defaults at 50 |
Parameter | Description |
---|---|
|
The parent folder to retrieve from |
Find a folder
You can search for folders by title using nested paths. To find a folder using a specific title, send this request:
GET /api/v1/folders/find?byPath=Microservices/QA
$ curl 'http://localhost:5516/api/v1/folders/find?byPath=Microservices/QA' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/find?byPath=Microservices/QA' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The path for the folder to search on |
|
The (optional) depth to search for; defaults at 1 |
Get folder
To find a folder using a specific folder ID, send this request:
GET /api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder |
Parameter | Description |
---|---|
|
The (optional) depth to search for; defaults at 1 |
Templates and releases
You can retrieve templates and releases within specific folders.
To find templates in a folder, send this request:
GET /api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder |
Parameter | Description |
---|---|
|
The (optional) depth to search for; defaults at 1 |
|
The (optional) page of results to return; defaults at 0 |
|
The (optional) the number of results per page; defaults at 50 |
If you want to search for releases:
POST /api/v1/folders/Applications/Folder317356664432479787c5e46c9d400fad/Folder758c2bbb7fc74f7da87dbda07a84118d/releases
{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "risk",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder317356664432479787c5e46c9d400fad/Folder758c2bbb7fc74f7da87dbda07a84118d/releases' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "risk",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}'
$ echo '{
"title" : null,
"tags" : null,
"taskTags" : null,
"timeFrame" : null,
"from" : null,
"to" : null,
"active" : false,
"planned" : true,
"inProgress" : false,
"paused" : false,
"failing" : false,
"failed" : false,
"inactive" : false,
"completed" : false,
"aborted" : false,
"onlyMine" : false,
"onlyFlagged" : false,
"onlyArchived" : false,
"parentId" : null,
"orderBy" : "risk",
"orderDirection" : null,
"riskStatusWithThresholds" : null
}' | http POST 'http://localhost:5516/api/v1/folders/Applications/Folder317356664432479787c5e46c9d400fad/Folder758c2bbb7fc74f7da87dbda07a84118d/releases' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder |
Parameter | Description |
---|---|
|
The (optional) page to search for; defaults at 0 |
|
The (optional) the number of results per page; defaults at 50 |
|
The (optional) depth to search for; defaults at 1 |
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the release title |
|
|
Matches the releases containing all of the specified tags |
|
|
The time-frame to search releases in. Valid values: LAST_MONTH, LAST_THREE_MONTHS, LAST_SIX_MONTHS, LAST_YEAR. Specify RANGE to filter by a custom from-to date range |
|
|
Matches the releases with end date after or equal to this date |
|
|
Matches the releases with start date before this date |
|
|
Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status |
|
|
Matches the releases with the PLANNED status |
|
|
Matches the releases with the IN_PROGRESS status |
|
|
Matches the releases with the PAUSED status |
|
|
Matches the releases with the FAILING status |
|
|
Matches the releases with the FAILED status |
|
|
Matches the releases with the COMPLETED or ABORTED status |
|
|
Matches the releases with the COMPLETED status |
|
|
Matches the releases with the ABORTED status |
|
|
Matches the releases with me as the owner |
|
|
Matches the releases which need attention or are at risk |
|
|
Matches the releases which have been archived |
|
|
Matches the releases stored under this folder |
|
|
The order of the returning set: risk, start_date, end_date, title (only available for templates) |
|
|
The order direction of the returning set: ASC, DESC |
Move templates
Templates can be moved from one folder to another folder.
Because folders have their own permissions, you can use an optional parameter called mergePermissions
to merge source folder and target folder permissions.
To move a template from one folder to another, send this request:
POST /api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The target folder the template will be moved to |
|
The id of the template to be moved |
Add folder inside folder
To create nested folders, send this request:
POST /api/v1/folders/Applications/Folder53f0cc0a38644e84a6418cfd080b8c44
{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "QA",
"children" : [ ]
}
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder53f0cc0a38644e84a6418cfd080b8c44' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "QA",
"children" : [ ]
}'
$ echo '{
"id" : null,
"type" : "xlrelease.Folder",
"title" : "QA",
"children" : [ ]
}' | http POST 'http://localhost:5516/api/v1/folders/Applications/Folder53f0cc0a38644e84a6418cfd080b8c44' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder to create the folder in |
Delete folders
To delete a folder, send this request:
DELETE /api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder to delete |
Move folders
To move folders inside another folder, send this request:
POST /api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder to move |
Parameter | Description |
---|---|
|
The id of the parent folder the folder will be moved under |
Note that you cannot move a folder if it contains active releases or templates with active triggers.
Rename folders
To rename a folder, send this request:
POST /api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the folder to move |
Parameter | Description |
---|---|
|
The new name of the folder |
Working with variables
For a detailed description about variables, refer to Variables in Digital.ai Release
Types of variables
Variable | XL-Release type | Example value |
---|---|---|
String |
xlrelease.StringVariable |
"Hello variable" |
Boolean |
xlrelease.BooleanVariable |
False |
Integer |
xlrelease.IntegerVariable |
1 |
List string |
xlrelease.ListStringVariable |
["first","second"] |
Map string string |
xlrelease.MapStringStringVariable |
<"Key","value"> |
Set string |
xlrelease.SetStringVariable |
("unique","value") |
Password |
xlrelease.PasswordStringVariable |
"myH4x0rP455w0rd" |
Date |
xlrelease.DateVariable |
"2017-07-17T10:31:00+01:00" |
CRUD on variables
Variables on release or templates
The following operations are available for both templates and releases. You can use either /templates
for templates or /releases
for releases in each curl
command.
List all release/template variables
To get the list of all the variables inside a template or release, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains a list of variables:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 328
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "value1",
"multiline" : false,
"preventInterpolation" : false
} ]
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
List all release/template variable values
To get the list of all interpolated variable values inside a template or release, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains map with interpolated variable values:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 53
{
"${var1ref}" : "value1",
"${var1}" : "value1"
}
Find release/template variable by ID
To get the information for only a specific variable inside a release or a template, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
Create new release/template variable
To add a new variable into your Applications/ReleasesTest/Release1
release:
The new variable will contain a String
, so make sure the type is xlrelease.StringVariable
.
Do the following command:
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables
{
"id" : null,
"key" : "newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"id" : null,
"key" : "newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}'
$ echo '{
"id" : null,
"key" : "newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}' | http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Value of the release variable or default value of the template variable |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
The response is similar to previous case
Delete new release/template variable
To delete variables, you can send this request:
DELETE /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Update variable
To update a single variable, send this request:
PUT /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}'
$ echo '{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}' | http PUT 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
Update variables
You can also update several variables in the same request by executing the following command:
PUT /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' -i -X PUT \
-H 'Content-Type: application/json' \
-d '[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]'
$ echo '[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]' | http PUT 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains a list of updated variables:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 335
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "var1",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]
Advanced
Variable values
To get all the possible values that you can use in an specific variable, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
The response contains the list of values:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 32
[ "value1", "value2", "value3" ]
Verify variable usage
To verify if a variable is used inside a release, send this request:
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
The response contains true
if variable is used, false
otherwise:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5
false
Replacing a variable
To replace one or more variables, send this request:
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/replace
{
"variable" : "${var2}",
"value" : "value2"
}
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/replace' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"variable" : "${var2}",
"value" : "value2"
}'
$ echo '{
"variable" : "${var2}",
"value" : "value2"
}' | http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/replace' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the variable; for example, Applications/Release1/Variable1 |
Path | Type | Description |
---|---|---|
|
|
Variable key with placeholder |
|
|
The new value |
The response:
HTTP/1.1 204 No Content
Content-Language: en
Variables used by a task
To get the variables used inside a task using the TaskApi
, send this request:
GET /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' \
'Accept:application/json'
With the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Release1/Phase2/Task3 |
The response contains a list with the variables used in the task:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 329
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "title",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "value1",
"multiline" : false,
"preventInterpolation" : false
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
Updating the variables of a UserInput task
You can update the variables values from a UserInput task using the following request:
PUT /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables
[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "title",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' -i -X PUT \
-H 'Content-Type: application/json' \
-d '[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "title",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]'
$ echo '[ {
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b",
"type" : "xlrelease.StringVariable",
"key" : "title",
"requiresValue" : true,
"showOnReleaseStart" : true,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
} ]' | http PUT 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' \
'Content-Type:application/json'
In order to call this API you will need release edit permission or having the task assigned to the same user doing the request. You can’t update variables that don’t belong to this task. You can’t add nor remove variables with this api.
The response will contain all the variables that the task has:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.Variable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
Global variables
List global variables
To list all the global variables, send this request:
GET /api/v1/config/Configuration/variables/global
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/Configuration/variables/global' \
'Accept:application/json'
The response contains all the global variables defined in the system:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 576
[ {
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}, {
"id" : "Configuration/variables/global/Variable2",
"type" : "xlrelease.StringVariable",
"key" : "global.var1ref",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "${global.var1}",
"multiline" : false,
"preventInterpolation" : false
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
List global variable values
To list all interpolated global variable values, send this request:
GET /api/v1/config/Configuration/variableValues/global
$ curl 'http://localhost:5516/api/v1/config/Configuration/variableValues/global' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/Configuration/variableValues/global' \
'Accept:application/json'
The response contains map with interpolated values of all the global variables defined in the system:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 65
{
"${global.var1ref}" : "value",
"${global.var1}" : "value"
}
Find global variable by ID
To obtain a specific global variable
, send this request:
GET /api/v1/config/Configuration/variables/global/Variable1
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the global variable; for example, Configuration/variables/global/Variable1 |
The response contains the global variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 279
{
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}
Create global variable
To add new global variable
, send this request:
POST /api/v1/config/Configuration/variables/global
{
"id" : null,
"key" : "global.newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"id" : null,
"key" : "global.newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}'
$ echo '{
"id" : null,
"key" : "global.newVar",
"type" : "xlrelease.StringVariable",
"requiresValue" : false,
"showOnReleaseStart" : false,
"value" : "new value",
"label" : null,
"description" : null,
"multiline" : false,
"referencedType" : null,
"inherited" : false,
"preventInterpolation" : false,
"externalVariableValue" : null,
"valueProvider" : null
}' | http POST 'http://localhost:5516/api/v1/config/Configuration/variables/global' \
'Content-Type:application/json'
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Value of the release variable or default value of the template variable |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
The response contains the added global variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 316
{
"id" : "Configuration/variables/global/Variable440a32daf43d46bb93ddf97e8c24342b",
"type" : "xlrelease.StringVariable",
"key" : "global.newVar",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "new value",
"multiline" : false,
"preventInterpolation" : false
}
Update global variable
To update a global variable
, send this request:
PUT /api/v1/config/Configuration/variables/global/Variable1
{
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}'
$ echo '{
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}' | http PUT 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the global variable; for example, Configuration/variables/global/Variable1 |
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
The response contains the updated global variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 287
{
"id" : "Configuration/variables/global/Variable1",
"type" : "xlrelease.StringVariable",
"key" : "global.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "updated value",
"multiline" : false,
"preventInterpolation" : false
}
Delete global variable
To delete a global variable
, send this request
DELETE /api/v1/config/Configuration/variables/global/Variable1
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the global variable; for example, Configuration/variables/global/Variable1 |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Folder variables
List folder variables
To get the list of all the variables inside a folder, send this request:
GET /api/v1/folders/Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34/variables?folderOnly=false
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34/variables?folderOnly=false' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34/variables?folderOnly=false' \
'Accept:application/json'
The response contains all the variables defined in the folder:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 752
[ {
"id" : "Variable991043fc11fb40bb86e3f228b3700f7f",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc3123bb7d6574d7694075ddb1050119b",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}, {
"id" : "Variable4ac62aa49aab434b85ef4e08b0e31062",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34",
"key" : "folder.var2",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "${folder.var1}",
"multiline" : false,
"preventInterpolation" : false
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
List folder variable values
To list all interpolated global variable values, send this request:
GET /api/v1/folders/Applications/Folder38955604d8564e3eb03e21069003010a/Folderab4fe1f5a31f4683a560e5e494789bac/variableValues?folderOnly=false
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder38955604d8564e3eb03e21069003010a/Folderab4fe1f5a31f4683a560e5e494789bac/variableValues?folderOnly=false' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder38955604d8564e3eb03e21069003010a/Folderab4fe1f5a31f4683a560e5e494789bac/variableValues?folderOnly=false' \
'Accept:application/json'
The response contains map with interpolated values of all the variables defined in the folder:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 62
{
"${folder.var2}" : "value",
"${folder.var1}" : "value"
}
Find folder variable by ID
To obtain a specific folder variable
, send this request:
GET /api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5
$ curl 'http://localhost:5516/api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the folder |
|
The id of the folder variable |
The response contains the folder variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 349
{
"id" : "Variable69f24fad3983426abf01cf9230a89cb5",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}
Create folder variable
To add new folder variable
, send this request:
POST /api/v1/folders/Applications/Folderc4d2963cf1c74aa78da75bfed0bda419/variables
{
"id" : null,
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc4d2963cf1c74aa78da75bfed0bda419",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderc4d2963cf1c74aa78da75bfed0bda419/variables' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"id" : null,
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc4d2963cf1c74aa78da75bfed0bda419",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}'
$ echo '{
"id" : null,
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc4d2963cf1c74aa78da75bfed0bda419",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}' | http POST 'http://localhost:5516/api/v1/folders/Applications/Folderc4d2963cf1c74aa78da75bfed0bda419/variables' \
'Content-Type:application/json'
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Value of the release variable or default value of the template variable |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
The response contains the added folder variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 349
{
"id" : "Variable494c27694033464395b06e0f23b93e78",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Folderc4d2963cf1c74aa78da75bfed0bda419",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "value",
"multiline" : false,
"preventInterpolation" : false
}
Update folder variable
To update a folder variable
, send this request:
PUT /api/v1/folders/Applications/Foldered97c9ea904b46289a1209045d3aaf9b/Variablec2dc0bc55f724f87bd6151415fa98033
{
"id" : "Variablec2dc0bc55f724f87bd6151415fa98033",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Foldered97c9ea904b46289a1209045d3aaf9b",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "new value",
"multiline" : false,
"preventInterpolation" : false
}
$ curl 'http://localhost:5516/api/v1/folders/Applications/Foldered97c9ea904b46289a1209045d3aaf9b/Variablec2dc0bc55f724f87bd6151415fa98033' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"id" : "Variablec2dc0bc55f724f87bd6151415fa98033",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Foldered97c9ea904b46289a1209045d3aaf9b",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "new value",
"multiline" : false,
"preventInterpolation" : false
}'
$ echo '{
"id" : "Variablec2dc0bc55f724f87bd6151415fa98033",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Foldered97c9ea904b46289a1209045d3aaf9b",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "new value",
"multiline" : false,
"preventInterpolation" : false
}' | http PUT 'http://localhost:5516/api/v1/folders/Applications/Foldered97c9ea904b46289a1209045d3aaf9b/Variablec2dc0bc55f724f87bd6151415fa98033' \
'Content-Type:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the folder |
|
The id of the folder variable |
All the variables in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.StringVariable'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The unique name of the variable in the way it is used in template or release, without curly braces |
|
|
Shows if an empty value is a valid value for this variable |
|
|
Shows if this variable will be shown on create release page |
|
|
Label of the variable |
|
|
Description of the variable |
|
|
Configuration of the variable values provider |
|
|
Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only. |
|
|
Value of the release variable or default value of the template variable |
|
|
If checked variable value will be multiline text |
|
|
Set this to true if you don’t want the contents of this variable scanned for other variables and updated after the variables are resolved. |
The response contains the updated folder variable:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 353
{
"id" : "Variablec2dc0bc55f724f87bd6151415fa98033",
"type" : "xlrelease.StringVariable",
"folderId" : "Applications/Foldered97c9ea904b46289a1209045d3aaf9b",
"key" : "folder.var1",
"requiresValue" : false,
"showOnReleaseStart" : false,
"inherited" : false,
"value" : "new value",
"multiline" : false,
"preventInterpolation" : false
}
Delete folder variable
To delete a folder variable
, send this request
DELETE /api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the folder |
|
The id of the folder variable |
You will receive this empty response:
HTTP/1.1 204 No Content
Content-Language: en
Shared configuration
All the configuration objects can be created globally or inside a folder. The folderId
field in the configuration object stores the id of the folder where you can create the configuration.
Searching for configuration objects
The Configuration API
allows you to search for configuration objects using the following url:
GET /api/v1/config/byTypeAndTitle?configurationType=jira.Server&title=my%20JIRA%20server&folderId=Applications/Folderc1a97d08a6e5431db91a88ea4c104c89&folderOnly=true
$ curl 'http://localhost:5516/api/v1/config/byTypeAndTitle?configurationType=jira.Server&title=my%20JIRA%20server&folderId=Applications/Folderc1a97d08a6e5431db91a88ea4c104c89&folderOnly=true' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/byTypeAndTitle?configurationType=jira.Server&title=my%20JIRA%20server&folderId=Applications/Folderc1a97d08a6e5431db91a88ea4c104c89&folderOnly=true' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Type of the Configuration object |
|
The title of the Configuration object |
|
The (optional) id of a possible folder that has configurations |
|
The (optional) folderOnly gets the configurations of a folder (true), or a folder including all of its parents configurations (false) |
The response contains a list of configuration objects that match the criteria:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 413
[ {
"id" : "Configuration/Custom/Configuration4a501bfbe0f640aabcb72a853ce66ab0",
"type" : "jira.Server",
"folderId" : "Applications/Folderc1a97d08a6e5431db91a88ea4c104c89",
"title" : "my JIRA server",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value"
} ]
If the configuration is created globally, the folderId
field will not be in the body of
the response.
Get configuration object
To retrieve the configuration object for a given ID, execute the following command:
GET /api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f
$ curl 'http://localhost:5516/api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the configuration instance; for example, Configuration/Custom/Configuration1 |
The response contains the configuration object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 479
{
"id" : "Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f",
"type" : "jira.Server",
"folderId" : "Applications/Folder07bdae6a0cd6484389c464b898c5342b",
"title" : "Jira server configuration",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"password" : "********",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "********"
}
If the configuration is created globally, the folderId
field will not be in the body of
the response.
Create configuration
To create a new configuration object, execute the following command:
POST /api/v1/config
{
"id" : "null",
"type" : "jira.Server",
"folderId" : "Applications/Folder6ae302cb162840e5b22b58655f15dc62",
"title" : "Jira server configuration",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}
$ curl 'http://localhost:5516/api/v1/config' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "null",
"type" : "jira.Server",
"folderId" : "Applications/Folder6ae302cb162840e5b22b58655f15dc62",
"title" : "Jira server configuration",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}'
$ echo '{
"id" : "null",
"type" : "jira.Server",
"folderId" : "Applications/Folder6ae302cb162840e5b22b58655f15dc62",
"title" : "Jira server configuration",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}' | http POST 'http://localhost:5516/api/v1/config' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created configuration object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 479
{
"id" : "Configuration/Custom/Configuration6406bb820d58481e89856f5a424d9a85",
"type" : "jira.Server",
"folderId" : "Applications/Folder6ae302cb162840e5b22b58655f15dc62",
"title" : "Jira server configuration",
"variableMapping" : { },
"url" : "http://localhost:4323/jira",
"username" : "jira username",
"password" : "********",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "********"
}
If a global configuration is needed, remove the folderId
field from the body of the request.
Update configuration
To update a configuration object with a given ID, execute the following command:
PUT /api/v1/config/Configuration/Custom/Configuration923584472632401ca3234f92d991c756
{
"id" : "Configuration1",
"type" : "jira.Server",
"folderId" : "Applications/Folder53a9d6a324cb47c595c51e843615002e",
"title" : "Changed jira title",
"variableMapping" : { },
"url" : "http://localhost:8438/jira-server",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}
$ curl 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration923584472632401ca3234f92d991c756' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Configuration1",
"type" : "jira.Server",
"folderId" : "Applications/Folder53a9d6a324cb47c595c51e843615002e",
"title" : "Changed jira title",
"variableMapping" : { },
"url" : "http://localhost:8438/jira-server",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}'
$ echo '{
"id" : "Configuration1",
"type" : "jira.Server",
"folderId" : "Applications/Folder53a9d6a324cb47c595c51e843615002e",
"title" : "Changed jira title",
"variableMapping" : { },
"url" : "http://localhost:8438/jira-server",
"username" : "jira username",
"password" : "jira password",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "proxyPassword value"
}' | http PUT 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration923584472632401ca3234f92d991c756' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the configuration instance; for example, Configuration/Custom/Configuration1 |
The response contains the updated configuration object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 479
{
"id" : "Configuration/Custom/Configuration923584472632401ca3234f92d991c756",
"type" : "jira.Server",
"folderId" : "Applications/Folder53a9d6a324cb47c595c51e843615002e",
"title" : "Changed jira title",
"variableMapping" : { },
"url" : "http://localhost:8438/jira-server",
"username" : "jira username",
"password" : "********",
"proxyHost" : "http://localhost",
"proxyPort" : "3533",
"proxyUsername" : "proxyUsername value",
"proxyPassword" : "********"
}
Delete configuration
To delete a configuration object with a given ID, execute the following command:
DELETE /api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459
$ curl 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
Full identifier of the configuration instance; for example, Configuration/Custom/Configuration1 |
The response is empty with the status code 204
.
System message configuration
Get system message configuration
To retrieve the system message configuration, execute the following command:
GET /api/v1/config/system-message
$ curl 'http://localhost:5516/api/v1/config/system-message' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/config/system-message' \
'Accept:application/json'
The response contain system message configuration:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 149
{
"id" : "Configuration/settings/SystemMessageSettings",
"type" : "xlrelease.SystemMessageSettings",
"enabled" : false,
"automated" : false
}
Update an system message configuration
To update system message configuration, send the following request:
PUT /api/v1/config/system-message
{
"id" : "Configuration/settings/SystemMessageSettings",
"type" : "xlrelease.SystemMessageSettings",
"enabled" : true,
"message" : "The system will be down from 11.12.2018 - 01.01.2019",
"automated" : false
}
$ curl 'http://localhost:5516/api/v1/config/system-message' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Configuration/settings/SystemMessageSettings",
"type" : "xlrelease.SystemMessageSettings",
"enabled" : true,
"message" : "The system will be down from 11.12.2018 - 01.01.2019",
"automated" : false
}'
$ echo '{
"id" : "Configuration/settings/SystemMessageSettings",
"type" : "xlrelease.SystemMessageSettings",
"enabled" : true,
"message" : "The system will be down from 11.12.2018 - 01.01.2019",
"automated" : false
}' | http PUT 'http://localhost:5516/api/v1/config/system-message' \
'Content-Type:application/json' \
'Accept:application/json'
The response contain updated system message configuration:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 218
{
"id" : "Configuration/settings/SystemMessageSettings",
"type" : "xlrelease.SystemMessageSettings",
"enabled" : true,
"message" : "The system will be down from 11.12.2018 - 01.01.2019",
"automated" : false
}
Working with DSL
In Digital.ai Release you can use DSL code to define releases. It is possible to export DSL code from an existing template.
dashboards and activity logs are not exported. |
Exporting template as DSL
To export DSL code of a template send this request:
GET /api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false
$ curl 'http://localhost:5516/api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false' -i -X GET
$ http GET 'http://localhost:5516/api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Parameter | Description |
---|---|
|
The (optional) boolean to render the DSL as template, otherwise will render as release |
You will receive a zip file with the name of the template. Inside of it will be the DSL file ("Releasefile.groovy") and attachments ("attachments/" directory) if any exist.
Previewing the template DSL
To preview the DSL code of a template send this request:
GET /api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false
$ curl 'http://localhost:5516/api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false' -i -X GET
$ http GET 'http://localhost:5516/api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false'
Using the following parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
Parameter | Description |
---|---|
|
The (optional) boolean to render the DSL as template, otherwise will render as release |
You will receive the DSL code that defines a template as string:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: text/plain;charset=UTF-8
Content-Length: 1131
// Exported from: http://jenkins-slave6-xlr:0/#/templates/Release162151faba694d03aa3065665cf26f21/code
// Release version: 23.2.0-SNAPSHOT
// Date created: Wed May 22 08:21:21 CEST 2024
xlr {
release('Sample XLR template') {
variables {
stringVariable('manualTaskTitle') {
value 'Manual task title'
}
passwordVariable('jiraPassword') {
value '{aes:v0}wyUO1YENf4qsKhVhD26sx/w77zyO10dpPLK2DaURUgU='
}
mapVariable('foundIssues') {
}
}
description 'XLR template to demonstrate DSL export functionality'
phases {
phase('Sample phase') {
tasks {
manual('${manualTaskTitle}') {
}
custom('Query JIRA') {
script {
type 'jira.Query'
jiraServer 'XL JIRA test instance'
username '${jiraUser}'
password variable('jiraPassword')
query 'project = "XL Release" AND status = "OPEN" ORDER BY createdDate DESC'
issues variable('foundIssues')
}
}
}
}
}
}
}
Security API
User management
All API calls under User management
require the security#edit
global role. If you do not have that permission, you can still get information about your username, edit your profile and change password.
Finding users
To list all the users:
GET /api/v1/users
$ curl 'http://localhost:5516/api/v1/users' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/users' \
'Accept:application/json'
This will return a list of the first 100 users by default. You can use the parameters page
and resultsPerPage
to retrieve new users.
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 762
[ {
"username" : "admin",
"external" : false,
"profileId" : "admin",
"email" : "",
"fullName" : "Release Administrator",
"externalId" : null,
"loginAllowed" : true,
"dateFormat" : null,
"timeFormat" : null,
"firstDayOfWeek" : 0,
"lastActive" : null,
"analyticsEnabled" : true,
"taskDrawerEnabled" : true,
"personalAccessTokenEnabled" : false
}, {
"username" : "user1",
"external" : false,
"profileId" : "user1",
"email" : "email@mail.com",
"fullName" : "John Doe",
"externalId" : null,
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "HH:mm",
"firstDayOfWeek" : 0,
"lastActive" : 1540378800000,
"analyticsEnabled" : true,
"taskDrawerEnabled" : true,
"personalAccessTokenEnabled" : false
} ]
You can also search for users using query parameters:
GET /api/v1/users?email=email@mail.com&lastActiveBefore=1540380600000
$ curl 'http://localhost:5516/api/v1/users?email=email@mail.com&lastActiveBefore=1540380600000' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/users?email=email@mail.com&lastActiveBefore=1540380600000' \
'Accept:application/json'
See the following table for all the different applicable query parameters:
Parameter | Description |
---|---|
|
Email of the user. |
|
Name of the user. |
|
Is login allowed for the user. |
|
Select users last active after this timestamp |
|
Select users last active before this timestamp |
|
The (optional) page of results to return. Default value is 0. |
|
The (optional) number of results per page. Default value is 100. |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
The username. |
|
|
Flag that specifies if the user is coming from an external source. |
|
|
The CI ID of the user profile. |
|
|
The email of the user. |
|
|
The full name of the user. |
|
|
The external id of the user. |
|
|
Whether user is allowed to login or not |
|
|
The profile setting for the date format. |
|
|
The profile setting for the time format. |
|
|
The profile setting for the first day of week. |
|
|
The timestamp corresponding to the last time this user interacted with Digital.ai Release |
|
|
The profile settings for opt-out from anonymous product usage analytics and guides |
|
|
The profile settings for opt-out from new task drawer details |
Get a single user
If you know the username, you can get the user information as follows:
GET /api/v1/users/user1
$ curl 'http://localhost:5516/api/v1/users/user1' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/users/user1' \
'Accept:application/json'
Parameter | Description |
---|---|
|
The username to retrieve information from. |
Create new users
You can create single users as follows:
POST /api/v1/users/user2
{
"password" : "Passw0rd!",
"loginAllowed" : true,
"fullName" : "My new User"
}
$ curl 'http://localhost:5516/api/v1/users/user2' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"password" : "Passw0rd!",
"loginAllowed" : true,
"fullName" : "My new User"
}'
$ echo '{
"password" : "Passw0rd!",
"loginAllowed" : true,
"fullName" : "My new User"
}' | http POST 'http://localhost:5516/api/v1/users/user2' \
'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
The email of the user. |
|
|
The full name of the user. |
|
|
The login permission for the user. |
|
|
The profile setting for the date format. |
|
|
The profile setting for the time format. |
|
|
The profile setting for the first day of week. |
Parameter | Description |
---|---|
|
The username from the user to be created. |
User preferences
Option | Possible values |
---|---|
dateFormat |
Empty, "M/d/yy", "dd/MM/yy", "yy/MM/dd" |
timeFormat |
Empty, "HH:mm", "h:mm a" |
firstDayOfWeek |
-1, 0, 1 |
For more information about these settings, see Personal settings
Update users
To update a single user:
PUT /api/v1/users/user1
{
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
}
$ curl 'http://localhost:5516/api/v1/users/user1' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
}'
$ echo '{
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
}' | http PUT 'http://localhost:5516/api/v1/users/user1' \
'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
The email of the user. |
|
|
The full name of the user. |
|
|
The login permission for the user. |
|
|
The profile setting for the date format. |
|
|
The profile setting for the time format. |
|
|
The profile setting for the first day of week. |
Parameter | Description |
---|---|
|
The username from the user to be updated. |
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 358
{
"username" : "user1",
"external" : false,
"profileId" : null,
"email" : null,
"fullName" : null,
"externalId" : null,
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0,
"lastActive" : null,
"analyticsEnabled" : true,
"taskDrawerEnabled" : true,
"personalAccessTokenEnabled" : false
}
You cannot set or change the password with this operation, see Change password section. |
It is also possible to do a multiple user update by passing a list of users to update:
PUT /api/v1/users
[ {
"username" : "user1",
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
} ]
$ curl 'http://localhost:5516/api/v1/users' -i -X PUT \
-H 'Content-Type: application/json' \
-d '[ {
"username" : "user1",
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
} ]'
$ echo '[ {
"username" : "user1",
"loginAllowed" : false,
"dateFormat" : "M/d/yy",
"timeFormat" : "h:mm a",
"firstDayOfWeek" : 0
} ]' | http PUT 'http://localhost:5516/api/v1/users' \
'Content-Type:application/json'
Change password
POST /api/v1/users/user1/password
{
"currentPassword" : "myPassword",
"newPassword" : "Passw0rd!"
}
$ curl 'http://localhost:5516/api/v1/users/user1/password' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"currentPassword" : "myPassword",
"newPassword" : "Passw0rd!"
}'
$ echo '{
"currentPassword" : "myPassword",
"newPassword" : "Passw0rd!"
}' | http POST 'http://localhost:5516/api/v1/users/user1/password' \
'Content-Type:application/json'
Path | Type | Description |
---|---|---|
|
|
The current password of the user, only required if you change your own password. |
|
|
The new password of the user. |
Parameter | Description |
---|---|
|
The username from the user to change password. |
You cannot change the password for an external user, it will return a 400 Bad request HTTP code. |
Delete a user
If you want to delete a user:
DELETE /api/v1/users/user3
$ curl 'http://localhost:5516/api/v1/users/user3' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/users/user3'
Parameter | Description |
---|---|
|
The username of the user to be deleted. |
You can also use this API call to delete user profiles of external users.
Global Roles & Permissions
List all permissions
To list global permissions, execute this command:
GET /api/v1/global-permissions
$ curl 'http://localhost:5516/api/v1/global-permissions' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/global-permissions' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 384
[ "admin", "login", "security#edit", "security#view", "report#view", "template#create", "release#create", "reports#view", "all#audit", "dashboard#create", "global_variables#edit", "folder#create_top_level", "global_calendar#edit_blackout", "risk_profile#edit", "environment#edit", "environment#view", "application#edit", "application#view", "reservation#edit", "runner#registration" ]
List all roles
To list global roles, execute this command:
GET /api/v1/roles?page=0&resultsPerPage=2
$ curl 'http://localhost:5516/api/v1/roles?page=0&resultsPerPage=2' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/roles?page=0&resultsPerPage=2' \
'Accept:application/json'
which returns:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 354
[ {
"name" : "Developers",
"id" : "0c99bacb-f587-4492-aa4c-a7fb13d186e3",
"permissions" : [ ],
"principals" : [ {
"username" : "devans",
"fullname" : null
} ]
}, {
"name" : "RoleWithAdminPermission",
"id" : "0",
"permissions" : [ ],
"principals" : [ {
"username" : "admin",
"fullname" : "Release Administrator"
} ]
} ]
Get a single role
To retrieve information for a single role, execute this command:
GET /api/v1/roles/Developers
$ curl 'http://localhost:5516/api/v1/roles/Developers' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/roles/Developers' \
'Accept:application/json'
with the following path parameters:
Parameter | Description |
---|---|
|
Name of the role |
which returns:
HTTP/1.1 200 OK
X-Total-Count: 1
Content-Language: en
Content-Type: application/json
Content-Length: 176
{
"name" : "Developers",
"id" : "c2450ba5-bbf0-4fea-bedd-a9c09fd8efc1",
"permissions" : [ ],
"principals" : [ {
"username" : "devans",
"fullname" : null
} ]
}
Response fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains name of the role. |
|
|
This field contains id of the role |
|
|
This field contains permissions granted to the role. |
|
|
This field contains principals. |
|
|
This field contains principals username. |
|
|
This field contains principals fullname. |
Create a new role
To create a single role, execute this command:
POST /api/v1/roles/Testers
{
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}
$ curl 'http://localhost:5516/api/v1/roles/Testers' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}'
$ echo '{
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}' | http POST 'http://localhost:5516/api/v1/roles/Testers' \
'Content-Type:application/json' \
'Accept:application/json'
with the following path parameters:
Parameter | Description |
---|---|
|
Name of the role |
Request fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains name of the role. |
|
|
This field contains id of the role |
|
|
This field contains permissions granted to the role. |
|
|
This field contains principals. |
|
|
This field contains principals username. |
|
|
This field contains principals fullname. |
Create a list of roles
To create multiple roles, execute this command:
POST /api/v1/roles
[ {
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Admins",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "jcoltrane",
"fullname" : "jcoltrane Smith"
} ]
} ]
$ curl 'http://localhost:5516/api/v1/roles' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ {
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Admins",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "jcoltrane",
"fullname" : "jcoltrane Smith"
} ]
} ]'
$ echo '[ {
"name" : "Testers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Admins",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "jcoltrane",
"fullname" : "jcoltrane Smith"
} ]
} ]' | http POST 'http://localhost:5516/api/v1/roles' \
'Content-Type:application/json' \
'Accept:application/json'
Request fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains name of the role. |
|
|
This field contains id of the role |
|
|
This field contains permissions granted to the role. |
|
|
This field contains principals. |
|
|
This field contains principals username. |
|
|
This field contains principals fullname. |
Update a role
This API does not support partial updates. You must include all the existing and new principals in the principals[] array to update them together. If you just add the new principals then the existing ones will get deleted. To update a role, execute this command:
PUT /api/v1/roles/Developers
{
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}
$ curl 'http://localhost:5516/api/v1/roles/Developers' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}'
$ echo '{
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}' | http PUT 'http://localhost:5516/api/v1/roles/Developers' \
'Content-Type:application/json' \
'Accept:application/json'
with the following path parameters:
Parameter | Description |
---|---|
|
Name of the role |
Request fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains name of the role. |
|
|
This field contains id of the role |
|
|
This field contains permissions granted to the role. |
|
|
This field contains principals. |
|
|
This field contains principals username. |
|
|
This field contains principals fullname. |
Update a list of roles
This API does not support partial updates. You must include all the existing and new principals in the principals[] array to update them together. If you just add the new principals then the existing ones will get deleted. To update a list of roles, execute this command:
PUT /api/v1/roles
[ {
"name" : "Developers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Operations",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "mdavis",
"fullname" : "mdavis Smith"
} ]
} ]
$ curl 'http://localhost:5516/api/v1/roles' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ {
"name" : "Developers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Operations",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "mdavis",
"fullname" : "mdavis Smith"
} ]
} ]'
$ echo '[ {
"name" : "Developers",
"id" : null,
"permissions" : [ "release#create", "template#create" ],
"principals" : [ {
"username" : "devans",
"fullname" : "devans Smith"
} ]
}, {
"name" : "Operations",
"id" : null,
"permissions" : [ "admin" ],
"principals" : [ {
"username" : "mdavis",
"fullname" : "mdavis Smith"
} ]
} ]' | http PUT 'http://localhost:5516/api/v1/roles' \
'Content-Type:application/json' \
'Accept:application/json'
Request fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains name of the role. |
|
|
This field contains id of the role |
|
|
This field contains permissions granted to the role. |
|
|
This field contains principals. |
|
|
This field contains principals username. |
|
|
This field contains principals fullname. |
Rename role
To rename a role, execute this command:
POST /api/v1/roles/Developers/rename?newName=New%20Developers
$ curl 'http://localhost:5516/api/v1/roles/Developers/rename?newName=New%20Developers' -i -X POST
$ http POST 'http://localhost:5516/api/v1/roles/Developers/rename?newName=New%20Developers'
with the following path parameters:
Parameter | Description |
---|---|
|
Name of the role |
and request parameters and their description:
Parameter | Description |
---|---|
|
New name of the role |
Delete role
To delete a role, execute this command:
DELETE /api/v1/roles/Developers
$ curl 'http://localhost:5516/api/v1/roles/Developers' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/roles/Developers'
with the following path parameters:
Parameter | Description |
---|---|
|
Name of the role |
Folder / template / release permissions
Note that:
-
Call to folders returns permissions for folders, templates and releases.
-
Call to templates returns permissions for templates and releases.
-
Call to releases returns permissions for releases only.
List possible permissions on a folder
To list permissions that can be used on a folder, execute this command:
GET /api/v1/folders/permissions
$ curl 'http://localhost:5516/api/v1/folders/permissions' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/permissions' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1093
[ "folder#view", "folder#edit", "folder#edit_security", "folder#edit_teams", "folder#edit_notifications", "folder#edit_configuration", "folder#edit_variables", "folder#view_versions", "folder#edit_versions", "folder#apply_changes", "folder#generate_configuration", "template#create_release", "template#create_release_other_folder", "template#view", "template#edit", "template#edit_security", "template#edit_triggers", "release#view", "release#edit", "release#edit_security", "release#start", "release#abort", "release#edit_task", "release#edit_task_script", "release#edit_task_input_output_properties", "release#edit_task_configuration_facet", "release#reassign_task", "release#edit_blackout", "release#task_transition", "release#advance_task_transition", "release#edit_task_tags", "release#edit_task_attachments", "release#edit_task_description", "release#edit_task_dates", "release#edit_task_flag", "release#restart_phase", "release#lock_task", "template#lock_task", "release#edit_failure_handler", "template#edit_failure_handler", "release#edit_precondition", "template#edit_precondition" ]
List possible permissions on a template
To list permissions that can be used on a folder, execute this command:
GET /api/v1/templates/permissions
$ curl 'http://localhost:5516/api/v1/templates/permissions' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/templates/permissions' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 830
[ "template#create_release", "template#create_release_other_folder", "template#view", "template#edit", "template#edit_security", "template#edit_triggers", "release#view", "release#edit", "release#edit_security", "release#start", "release#abort", "release#edit_task", "release#edit_task_script", "release#edit_task_input_output_properties", "release#edit_task_configuration_facet", "release#reassign_task", "release#edit_blackout", "release#task_transition", "release#advance_task_transition", "release#edit_task_tags", "release#edit_task_attachments", "release#edit_task_description", "release#edit_task_dates", "release#edit_task_flag", "release#restart_phase", "release#lock_task", "template#lock_task", "release#edit_failure_handler", "template#edit_failure_handler", "release#edit_precondition", "template#edit_precondition" ]
List possible permissions on a release
To list permissions that can be used on a folder, execute this command:
GET /api/v1/releases/permissions
$ curl 'http://localhost:5516/api/v1/releases/permissions' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/permissions' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 592
[ "release#view", "release#edit", "release#edit_security", "release#start", "release#abort", "release#edit_task", "release#edit_task_script", "release#edit_task_input_output_properties", "release#edit_task_configuration_facet", "release#reassign_task", "release#edit_blackout", "release#task_transition", "release#advance_task_transition", "release#edit_task_tags", "release#edit_task_attachments", "release#edit_task_description", "release#edit_task_dates", "release#edit_task_flag", "release#restart_phase", "release#lock_task", "release#edit_failure_handler", "release#edit_precondition" ]
List all teams
Get all teams and permissions on a folder
To list teams and permissions on a folder, execute this command:
GET /api/v1/folders/Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/teams
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/teams' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/teams' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2303
[ {
"id" : "Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/Team35c2158d540e4932a4c3a5794a8a08dd",
"teamName" : "Release Admin",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/Team1f9a50d1138b47119a8f976f9cf3d284",
"teamName" : "Folder Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/Team5edf8e7f2b7a4e22b8c01eb1b8e72fb8",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
The folder Id |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Get all teams and permissions on a template
To list teams and permissions on a template, execute this command:
GET /api/v1/templates/Applications/Releaseeefda635030d4da9b24a18be7178a3ff/teams
$ curl 'http://localhost:5516/api/v1/templates/Applications/Releaseeefda635030d4da9b24a18be7178a3ff/teams' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/templates/Applications/Releaseeefda635030d4da9b24a18be7178a3ff/teams' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2045
[ {
"id" : "Applications/Releaseeefda635030d4da9b24a18be7178a3ff/Teamf9396d72130948abbec62b865324728b",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
}, {
"id" : "Applications/Releaseeefda635030d4da9b24a18be7178a3ff/Team19300ce0ef9a488b9ad65913137f134e",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Releaseeefda635030d4da9b24a18be7178a3ff/Team9bc7b27dd7774dfea3391cd9e2c1afee",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Releaseeefda635030d4da9b24a18be7178a3ff/Team87638b4262064472bc401e0fc83a6ea9",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Get all teams and permissions on a release
To list teams and permissions on a release, execute this command:
GET /api/v1/releases/Applications/Release00a87de3f3454924a17bc31591067f45/teams
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release00a87de3f3454924a17bc31591067f45/teams' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release00a87de3f3454924a17bc31591067f45/teams' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2045
[ {
"id" : "Applications/Release00a87de3f3454924a17bc31591067f45/Team01d0fcf8ee8e4c3dbc3450851b085bfe",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Release00a87de3f3454924a17bc31591067f45/Team5aae229498c149d1a5204ed148d73aaf",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release00a87de3f3454924a17bc31591067f45/Team1c81740587984fcb81a0fb1838d71854",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release00a87de3f3454924a17bc31591067f45/Team92f44d8cb1404b279e53404f95b9f5b1",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Update teams
Set all teams and permissions on a folder
This API does not support partial updates. You must include all teams and the system teams (Template Owner
, Release Admin
, and Folder Owner
).
To set all teams and permissions on a folder, execute this command:
POST /api/v1/folders/Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/teams
[ {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team811f6104b72244daa790a1e82518760b",
"teamName" : "Folder Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration", "release#edit" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Teamc39f9bb4d8d341538ae6c523b81abe1e",
"teamName" : "Release Admin",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team057a34746eca44418ff6552d75e8644f",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
} ]
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/teams' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team811f6104b72244daa790a1e82518760b",
"teamName" : "Folder Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration", "release#edit" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Teamc39f9bb4d8d341538ae6c523b81abe1e",
"teamName" : "Release Admin",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team057a34746eca44418ff6552d75e8644f",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
} ]'
$ echo '[ {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team811f6104b72244daa790a1e82518760b",
"teamName" : "Folder Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration", "release#edit" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Teamc39f9bb4d8d341538ae6c523b81abe1e",
"teamName" : "Release Admin",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team057a34746eca44418ff6552d75e8644f",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
} ]' | http POST 'http://localhost:5516/api/v1/folders/Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/teams' \
'Content-Type:application/json' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2319
[ {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team811f6104b72244daa790a1e82518760b",
"teamName" : "Folder Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "folder#edit_variables", "delivery_pattern#edit", "folder#edit_configuration", "delivery#edit", "folder#view_versions", "folder#apply_changes", "group#view", "folder#edit_versions", "folder#edit_notifications", "delivery_pattern#view", "group#edit", "delivery#view", "delivery#edit_tracked_item", "folder#view", "folder#edit_security", "dashboard#edit", "folder#edit", "dashboard#view", "folder#generate_configuration", "release#edit" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Teamc39f9bb4d8d341538ae6c523b81abe1e",
"teamName" : "Release Admin",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#edit_task_attachments", "release#task_transition", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Folder50a1078695b34bb3bdb32aa4f09e9731/Team057a34746eca44418ff6552d75e8644f",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "trigger#view_trigger", "template#lock_task", "template#view", "folder#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
The folder Id |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Set all teams and permissions on a template
This API does not support partial updates. You must include all teams and the system teams (Template Owner
and Release Admin
).
To set all teams and permissions on a template
POST /api/v1/templates/Applications/Release086121f8a52647d3949cce29a8ca4c94/teams
[ {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team3a0c8a4687b6488aa12a525d7643fdae",
"teamName" : "Release Admin",
"members" : [ {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team79f05b17ee1f4488a3e0dfa71eecbb45",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Teama8cc1743fa8948819638ada368f26aa9",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team265582bc9be74344ab6dcf4cce3726c0",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
} ]
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release086121f8a52647d3949cce29a8ca4c94/teams' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team3a0c8a4687b6488aa12a525d7643fdae",
"teamName" : "Release Admin",
"members" : [ {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team79f05b17ee1f4488a3e0dfa71eecbb45",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Teama8cc1743fa8948819638ada368f26aa9",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team265582bc9be74344ab6dcf4cce3726c0",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
} ]'
$ echo '[ {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team3a0c8a4687b6488aa12a525d7643fdae",
"teamName" : "Release Admin",
"members" : [ {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team79f05b17ee1f4488a3e0dfa71eecbb45",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Teama8cc1743fa8948819638ada368f26aa9",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team265582bc9be74344ab6dcf4cce3726c0",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
} ]' | http POST 'http://localhost:5516/api/v1/templates/Applications/Release086121f8a52647d3949cce29a8ca4c94/teams' \
'Content-Type:application/json' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2143
[ {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team3a0c8a4687b6488aa12a525d7643fdae",
"teamName" : "Release Admin",
"members" : [ {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team79f05b17ee1f4488a3e0dfa71eecbb45",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Teama8cc1743fa8948819638ada368f26aa9",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release086121f8a52647d3949cce29a8ca4c94/Team265582bc9be74344ab6dcf4cce3726c0",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
Full template identifier; for example, Applications/Release1 |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Set all teams and permissions on a release
This API does not support partial updates. You must include all teams and the system teams (Template Owner
and Release Admin
).
To set all teams and permissions on a release, execute this command:
POST /api/v1/releases/Applications/Release16e555bfa5864ad0b8f80911cffebafb/teams
[ {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Teama90f1dfcd0c346259025decd2604327f",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
}, {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team027493965c7e4f9ba8d4ec640eed92c1",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team33120e0face349b38cdc2217ff58151f",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team151a89f6825749f2b9f36c058f70970b",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
} ]
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release16e555bfa5864ad0b8f80911cffebafb/teams' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Teama90f1dfcd0c346259025decd2604327f",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
}, {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team027493965c7e4f9ba8d4ec640eed92c1",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team33120e0face349b38cdc2217ff58151f",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team151a89f6825749f2b9f36c058f70970b",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
} ]'
$ echo '[ {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Teama90f1dfcd0c346259025decd2604327f",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
}, {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team027493965c7e4f9ba8d4ec640eed92c1",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team33120e0face349b38cdc2217ff58151f",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team151a89f6825749f2b9f36c058f70970b",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
} ]' | http POST 'http://localhost:5516/api/v1/releases/Applications/Release16e555bfa5864ad0b8f80911cffebafb/teams' \
'Content-Type:application/json' \
'Accept:application/json'
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2144
[ {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Teama90f1dfcd0c346259025decd2604327f",
"teamName" : "Development team",
"members" : [ {
"name" : "john",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
}, {
"name" : "mdavis",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#view" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team027493965c7e4f9ba8d4ec640eed92c1",
"teamName" : "Template Owner",
"members" : [ {
"name" : "admin",
"fullName" : "Release Administrator",
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "template#create_release_other_folder", "template#edit", "template#lock_task", "template#view", "template#edit_security", "template#create_release", "template#edit_triggers", "template#edit_precondition", "template#edit_failure_handler" ],
"systemTeam" : true
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team33120e0face349b38cdc2217ff58151f",
"teamName" : "Test team",
"members" : [ {
"name" : "fred",
"fullName" : null,
"type" : "PRINCIPAL",
"roleId" : null
} ],
"permissions" : [ "release#edit" ],
"systemTeam" : false
}, {
"id" : "Applications/Release16e555bfa5864ad0b8f80911cffebafb/Team151a89f6825749f2b9f36c058f70970b",
"teamName" : "Release Admin",
"members" : [ ],
"permissions" : [ "release#edit_precondition", "release#edit", "release#advance_task_transition", "release#edit_security", "release#restart_phase", "release#lock_task", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "release#edit_task", "release#task_transition", "release#edit_task_attachments", "trigger#view_trigger", "release#reassign_task", "release#edit_task_input_output_properties", "release#edit_task_tags", "release#edit_task_description", "trigger#edit_trigger", "release#view", "release#start", "release#edit_blackout", "template#view", "release#edit_failure_handler", "release#abort" ],
"systemTeam" : true
} ]
See the following table for applicable path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response fields explained:
Path | Type | Description |
---|---|---|
|
|
Id of the team |
|
|
Name of the team |
|
|
Team members. Can be roles and principals. |
|
|
Team member username. |
|
|
Team member full name. Can be null (for roles or users with just username). |
|
|
Team member type. Can be ROLE or PRINCIPAL. |
|
|
Id of the role. Can be null (for member type PRINCIPAL). |
|
|
Names of the team permissions. |
|
|
Marks teams provided by the system. |
Risk
The risk score is a calculation for the health of a release and how critical are the issues.
Release risk score
To retrieve the release risk score, send this request:
GET /api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk
$ curl 'http://localhost:5516/api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Release1 |
The response contains the risk score for the release:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 6799
{
"id" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"type" : "xlrelease.Risk",
"score" : 90,
"totalScore" : 170,
"riskAssessments" : [ {
"id" : "2095445758",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/ReleaseStatusFailedRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 90,
"headline" : "Release has failed",
"messages" : [ "Applications/Release162151faba694d03aa3065665cf26f21 has failed" ]
}, {
"id" : "1377795629",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/MoreThanOneTaskOverDueRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "600652883",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessor5Retries",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "22185650",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessorMoreThan5Retries",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1432288207",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/ReleaseFlaggedAttentionNeededRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1522955562",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithTwoOrThreeFlagsAtRiskRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "270792069",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithMoreThanSixFlagsAtRiskRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "97621541",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/ReleaseStatusFailingRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "661886419",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/ReleaseFlaggedAtRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1316346674",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 50,
"headline" : "Release contains failed tasks",
"messages" : [ "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726 has failed 1 time" ]
}, {
"id" : "1098219684",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/ReleaseDueDateRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 30,
"headline" : "Release is overdue",
"messages" : [ "Applications/Release162151faba694d03aa3065665cf26f21 is overdue since 2024-05-22T08:22:01.393" ]
}, {
"id" : "1218201105",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessor3Retries",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1945804764",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "330720986",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/OneTaskOverDueRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "2125182120",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessor4Retries",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1420679586",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1938733204",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1403949193",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskRetriesRiskAssessor2Retries",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1887658144",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithOneFlagNeedsAttentionRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1247397851",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithOneFlagAtRiskRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
}, {
"id" : "1284869148",
"type" : "xlrelease.RiskAssessment",
"riskAssessorId" : "Applications/TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor",
"risk" : "Applications/Release162151faba694d03aa3065665cf26f21/Risk",
"score" : 0,
"headline" : "Release is on track",
"messages" : [ ]
} ]
}
Global risk thresholds
Global risk thresholds are configurable thresholds that the risk score will be calculated based on. To retrieve the global risk thresholds configuration, send this request:
GET /api/v1/risks/config
$ curl 'http://localhost:5516/api/v1/risks/config' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/risks/config' \
'Accept:application/json'
The response contains the global risk thresholds configuration:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 151
{
"id" : "Configuration/risks/RiskGlobalThresholds",
"type" : "xlrelease.RiskGlobalThresholds",
"atRiskFrom" : 50,
"attentionNeededFrom" : 10
}
Risk profile
Create a risk profile
To create a new risk profile, send this request:
POST /api/v1/risks/profiles
{
"id" : null,
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 3",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "66",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "42",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "54",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "32",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "27",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "39",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "86",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "56",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "75",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "73",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "63",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "33"
}
}
$ curl 'http://localhost:5516/api/v1/risks/profiles' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 3",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "66",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "42",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "54",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "32",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "27",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "39",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "86",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "56",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "75",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "73",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "63",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "33"
}
}'
$ echo '{
"id" : null,
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 3",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "66",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "42",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "54",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "32",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "27",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "39",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "86",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "56",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "75",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "73",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "63",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "33"
}
}' | http POST 'http://localhost:5516/api/v1/risks/profiles' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created risk profile object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1205
{
"id" : "Configuration/riskProfiles/RiskProfile244b491617254e7cb8eaf78419169f8a",
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 3",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "66",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "42",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "54",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "32",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "27",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "39",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "86",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "56",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "75",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "73",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "63",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "33",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69"
}
}
Listing all risk profiles
Property name | Description | Default value |
---|---|---|
xlrelease.ReleaseFlaggedAtRiskAssessor |
Release flag red |
80 |
xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor |
Release flag amber |
30 |
xlrelease.ReleaseStatusFailedRiskAssessor |
Release state failed |
90 |
xlrelease.ReleaseStatusFailingRiskAssessor |
Release state failing |
70 |
xlrelease.ReleaseDueDateRiskAssessor |
Release past due date |
30 |
xlrelease.TaskWithOneFlagAtRiskRiskAssessor |
Task flag red (1) |
65 |
xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor |
Task flag red (2-3) |
70 |
xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor |
Task flag red (4-6) |
75 |
xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor |
Task flag red (6+) |
80 |
xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor |
Task flag amber (1) |
10 |
xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor |
Task flag amber (2-3) |
20 |
xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor |
Task flag amber (4-6) |
30 |
xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor |
Task flag amber (6+) |
40 |
xlrelease.OneTaskOverDueRiskAssessor |
Current task past due |
25 |
xlrelease.MoreThanOneTaskOverDueRiskAssessor |
Multiple tasks past due |
35 |
xlrelease.TaskRetriesRiskAssessor |
1 retry for a failed task |
50 |
xlrelease.TaskRetriesRiskAssessor2Retries |
2 retries for a failed task |
60 |
xlrelease.TaskRetriesRiskAssessor3Retries |
3 retries for a failed task |
70 |
xlrelease.TaskRetriesRiskAssessor4Retries |
4 retries for a failed task |
80 |
xlrelease.TaskRetriesRiskAssessor5Retries |
5 retries for a failed task |
90 |
xlrelease.TaskRetriesRiskAssessorMoreThan5Retries |
6+ retries for a failed task |
100 |
To retrieve the list of all risk profiles, send this request:
GET /api/v1/risks/profiles
$ curl 'http://localhost:5516/api/v1/risks/profiles' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/risks/profiles' \
'Accept:application/json'
The response contains all the risk profiles defined in the system:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3892
[ {
"id" : "Configuration/riskProfiles/RiskProfileDefault",
"type" : "xlrelease.RiskProfile",
"title" : "Default risk profile",
"defaultProfile" : true,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "50",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "20",
"xlrelease.ReleaseDueDateRiskAssessor" : "30",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "35",
"xlrelease.TaskRetriesRiskAssessor4Retries" : "80",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "30",
"xlrelease.TaskRetriesRiskAssessor5Retries" : "90",
"xlrelease.TaskRetriesRiskAssessor3Retries" : "70",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "80",
"xlrelease.TaskRetriesRiskAssessorMoreThan5Retries" : "100",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "30",
"xlrelease.OneTaskOverDueRiskAssessor" : "25",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "90",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "65",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "80",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "70",
"xlrelease.TaskRetriesRiskAssessor2Retries" : "60",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "10",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "75"
}
}, {
"id" : "Configuration/riskProfiles/RiskProfile1e5d4b75405b44259a4ced44eac7d6de",
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 1",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "50",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "20",
"xlrelease.ReleaseDueDateRiskAssessor" : "30",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "35",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "30",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "80",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "30",
"xlrelease.OneTaskOverDueRiskAssessor" : "25",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "90",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "65",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "80",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "70",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "10",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "75"
}
}, {
"id" : "Configuration/riskProfiles/RiskProfilef1ee85c976dd4ec0b17afd1833a4e2d6",
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 2",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "67",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "42",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "55",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "32",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "27",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "86",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "59",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "75",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "73",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "63",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "33",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69"
}
} ]
Fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.RiskProfile'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The name of risk profile. |
|
|
Is this default risk profile. |
|
|
Risk Profile Assessors |
Find risk profile by ID
To find a risk profile using a specific ID, send this request:
GET /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the risk profile; for example, Configuration/riskProfiles/RiskProfile150970630496129498 |
The response contains the risk profile:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1205
{
"id" : "Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7",
"type" : "xlrelease.RiskProfile",
"title" : "Risk Profile 1",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "50",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "20",
"xlrelease.ReleaseDueDateRiskAssessor" : "30",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "35",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "30",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "80",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "30",
"xlrelease.OneTaskOverDueRiskAssessor" : "25",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "90",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "65",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "80",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "70",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "10",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "75"
}
}
Update risk profile
To update a risk profile, send this request:
PUT /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591
{
"id" : "Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591",
"type" : "xlrelease.RiskProfile",
"title" : "Risk profile 2 updated",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "67",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "38",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "55",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "28",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "47",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "87",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "45",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "71",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "66",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "63"
}
}
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591",
"type" : "xlrelease.RiskProfile",
"title" : "Risk profile 2 updated",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "67",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "38",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "55",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "28",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "47",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "87",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "45",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "71",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "66",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "63"
}
}'
$ echo '{
"id" : "Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591",
"type" : "xlrelease.RiskProfile",
"title" : "Risk profile 2 updated",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "67",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "38",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "55",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "28",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "47",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "87",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "45",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "71",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "66",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "63"
}
}' | http PUT 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the risk profile; for example, Configuration/riskProfiles/RiskProfile150970630496129498 |
Request fields and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.RiskProfile'. |
|
|
If set, this field contains the folder that this configuration belongs to. |
|
|
The name of risk profile. |
|
|
Is this default risk profile. |
|
|
Risk Profile Assessors |
The response contains the updated risk profile object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1213
{
"id" : "Configuration/riskProfiles/RiskProfilee80e2172d4cf4c07b91c8948696d8591",
"type" : "xlrelease.RiskProfile",
"title" : "Risk profile 2 updated",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "67",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "37",
"xlrelease.ReleaseDueDateRiskAssessor" : "38",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "55",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "28",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "47",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "22",
"xlrelease.OneTaskOverDueRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "87",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "45",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "71",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "28",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "66",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "63",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "69"
}
}
Delete risk profile
To delete risk profile, send this request:
DELETE /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the risk profile; for example, Configuration/riskProfiles/RiskProfile150970630496129498 |
The response is empty with the status code 204.
Risk profiles that are currently in use cannot be deleted and a 409 error will be returned if there is a call to delete such a risk profile.
Copy risk profile
To copy a risk profile, send this request:
POST /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the risk profile; for example, Configuration/riskProfiles/RiskProfile150970630496129498 |
The response contains the copied risk profile object:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1504
{
"id" : "Configuration/riskProfiles/RiskProfilefb151d2e7e164533b492a1ba5443b2ee",
"type" : "xlrelease.RiskProfile",
"title" : "Default risk profile (1)",
"defaultProfile" : false,
"riskProfileAssessors" : {
"xlrelease.TaskRetriesRiskAssessor" : "50",
"xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor" : "20",
"xlrelease.ReleaseDueDateRiskAssessor" : "30",
"xlrelease.MoreThanOneTaskOverDueRiskAssessor" : "35",
"xlrelease.TaskRetriesRiskAssessor4Retries" : "80",
"xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor" : "30",
"xlrelease.TaskRetriesRiskAssessor5Retries" : "90",
"xlrelease.TaskRetriesRiskAssessor3Retries" : "70",
"xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor" : "80",
"xlrelease.TaskRetriesRiskAssessorMoreThan5Retries" : "100",
"xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor" : "30",
"xlrelease.OneTaskOverDueRiskAssessor" : "25",
"xlrelease.ReleaseStatusFailedRiskAssessor" : "90",
"xlrelease.TaskWithOneFlagAtRiskRiskAssessor" : "65",
"xlrelease.ReleaseFlaggedAtRiskAssessor" : "80",
"xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor" : "40",
"xlrelease.ReleaseStatusFailingRiskAssessor" : "70",
"xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor" : "70",
"xlrelease.TaskRetriesRiskAssessor2Retries" : "60",
"xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor" : "10",
"xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor" : "75"
}
}
Listing all risk assessors
To retrieve the list of all risk assessors, send this request:
GET /api/v1/risks/assessors
$ curl 'http://localhost:5516/api/v1/risks/assessors' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/risks/assessors' \
'Accept:application/json'
The response contains all risk assessors defined in the system:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 6017
[ {
"id" : "Applications/ReleaseStatusFailedRiskAssessor",
"type" : "xlrelease.ReleaseStatusFailedRiskAssessor",
"title" : "Release state failed",
"weight" : 1,
"score" : 90,
"order" : "2-sf-00",
"group" : "Release state failed"
}, {
"id" : "Applications/MoreThanOneTaskOverDueRiskAssessor",
"type" : "xlrelease.MoreThanOneTaskOverDueRiskAssessor",
"title" : "> 1 task",
"weight" : 1,
"score" : 35,
"order" : "7-od-01",
"group" : "Current task(s) past due date"
}, {
"id" : "Applications/TaskRetriesRiskAssessor5Retries",
"type" : "xlrelease.TaskRetriesRiskAssessor5Retries",
"weight" : 1,
"group" : "Retries for a failed task",
"order" : "8-rt-04",
"minRetries" : 5,
"maxRetries" : 5,
"score" : 90,
"title" : "5 retries"
}, {
"id" : "Applications/TaskRetriesRiskAssessorMoreThan5Retries",
"type" : "xlrelease.TaskRetriesRiskAssessorMoreThan5Retries",
"weight" : 1,
"group" : "Retries for a failed task",
"order" : "8-rt-05",
"minRetries" : 6,
"maxRetries" : 9999999,
"score" : 100,
"title" : "> 5 retries"
}, {
"id" : "Applications/ReleaseFlaggedAttentionNeededRiskAssessor",
"type" : "xlrelease.ReleaseFlaggedAttentionNeededRiskAssessor",
"title" : "Release flag amber",
"weight" : 1,
"score" : 30,
"order" : "1-fa-00",
"group" : "Release flag amber"
}, {
"id" : "Applications/TaskWithTwoOrThreeFlagsAtRiskRiskAssessor",
"type" : "xlrelease.TaskWithTwoOrThreeFlagsAtRiskRiskAssessor",
"weight" : 1,
"group" : "Task flag red",
"icon" : "xl-icon flag-risk-icon",
"score" : 70,
"order" : "5-ar-02",
"minFlags" : 2,
"maxFlags" : 3,
"title" : "2 - 3 flags"
}, {
"id" : "Applications/TaskWithMoreThanSixFlagsAtRiskRiskAssessor",
"type" : "xlrelease.TaskWithMoreThanSixFlagsAtRiskRiskAssessor",
"weight" : 1,
"group" : "Task flag red",
"icon" : "xl-icon flag-risk-icon",
"score" : 80,
"order" : "6-ar-04",
"minFlags" : 7,
"maxFlags" : 999999999,
"title" : "> 6 flags"
}, {
"id" : "Applications/ReleaseStatusFailingRiskAssessor",
"type" : "xlrelease.ReleaseStatusFailingRiskAssessor",
"title" : "Release state failing",
"weight" : 1,
"score" : 70,
"order" : "3-sf-00",
"group" : "Release state failing"
}, {
"id" : "Applications/ReleaseFlaggedAtRiskAssessor",
"type" : "xlrelease.ReleaseFlaggedAtRiskAssessor",
"title" : "Release flag red",
"weight" : 1,
"score" : 80,
"order" : "0-fr-00",
"group" : "Release flag red"
}, {
"id" : "Applications/TaskRetriesRiskAssessor",
"type" : "xlrelease.TaskRetriesRiskAssessor",
"title" : "1 retry",
"weight" : 1,
"score" : 50,
"order" : "8-rt-00",
"group" : "Retries for a failed task",
"minRetries" : 1,
"maxRetries" : 1
}, {
"id" : "Applications/ReleaseDueDateRiskAssessor",
"type" : "xlrelease.ReleaseDueDateRiskAssessor",
"title" : "Release past due date",
"weight" : 1,
"score" : 30,
"order" : "4-pd-00",
"group" : "Release past due date"
}, {
"id" : "Applications/TaskRetriesRiskAssessor3Retries",
"type" : "xlrelease.TaskRetriesRiskAssessor3Retries",
"weight" : 1,
"group" : "Retries for a failed task",
"order" : "8-rt-02",
"minRetries" : 3,
"maxRetries" : 3,
"score" : 70,
"title" : "3 retries"
}, {
"id" : "Applications/TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor",
"type" : "xlrelease.TaskWithFourFiveOrSixFlagsAtRiskRiskAssessor",
"weight" : 1,
"group" : "Task flag red",
"icon" : "xl-icon flag-risk-icon",
"score" : 75,
"order" : "5-ar-03",
"minFlags" : 4,
"maxFlags" : 6,
"title" : "4 - 6 flags"
}, {
"id" : "Applications/OneTaskOverDueRiskAssessor",
"type" : "xlrelease.OneTaskOverDueRiskAssessor",
"title" : "1 task",
"weight" : 1,
"score" : 25,
"order" : "7-od-00",
"group" : "Current task(s) past due date"
}, {
"id" : "Applications/TaskRetriesRiskAssessor4Retries",
"type" : "xlrelease.TaskRetriesRiskAssessor4Retries",
"weight" : 1,
"group" : "Retries for a failed task",
"order" : "8-rt-03",
"minRetries" : 4,
"maxRetries" : 4,
"score" : 80,
"title" : "4 retries"
}, {
"id" : "Applications/TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor",
"type" : "xlrelease.TaskWithFourFiveOrSixFlagsNeedsAttentionRiskAssessor",
"weight" : 1,
"group" : "Task flag amber",
"icon" : "xl-icon flag-attention-icon",
"score" : 30,
"order" : "6-na-03",
"minFlags" : 4,
"maxFlags" : 6,
"title" : "4 - 6 flags"
}, {
"id" : "Applications/TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor",
"type" : "xlrelease.TaskWithMoreThanSixFlagsNeedsAttentionRiskAssessor",
"weight" : 1,
"group" : "Task flag amber",
"icon" : "xl-icon flag-attention-icon",
"score" : 40,
"order" : "6-na-04",
"minFlags" : 7,
"maxFlags" : 999999999,
"title" : "> 6 flags"
}, {
"id" : "Applications/TaskRetriesRiskAssessor2Retries",
"type" : "xlrelease.TaskRetriesRiskAssessor2Retries",
"weight" : 1,
"group" : "Retries for a failed task",
"order" : "8-rt-01",
"minRetries" : 2,
"maxRetries" : 2,
"score" : 60,
"title" : "2 retries"
}, {
"id" : "Applications/TaskWithOneFlagNeedsAttentionRiskAssessor",
"type" : "xlrelease.TaskWithOneFlagNeedsAttentionRiskAssessor",
"weight" : 1,
"group" : "Task flag amber",
"icon" : "xl-icon flag-attention-icon",
"score" : 10,
"order" : "6-na-01",
"minFlags" : 1,
"maxFlags" : 1,
"title" : "1 flag"
}, {
"id" : "Applications/TaskWithOneFlagAtRiskRiskAssessor",
"type" : "xlrelease.TaskWithOneFlagAtRiskRiskAssessor",
"weight" : 1,
"group" : "Task flag red",
"icon" : "xl-icon flag-risk-icon",
"score" : 65,
"order" : "5-ar-01",
"minFlags" : 1,
"maxFlags" : 1,
"title" : "1 flag"
}, {
"id" : "Applications/TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor",
"type" : "xlrelease.TaskWithTwoOrThreeFlagsNeedsAttentionRiskAssessor",
"weight" : 1,
"group" : "Task flag amber",
"icon" : "xl-icon flag-attention-icon",
"score" : 20,
"order" : "6-na-02",
"minFlags" : 2,
"maxFlags" : 3,
"title" : "2 - 3 flags"
} ]
Fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.RiskAssessor'. |
|
|
The title of the risk assessor. |
|
|
The description of the item. |
|
|
The weight of the assessor in the total calculation. |
|
|
Score given when assessor decides it needs scoring. |
|
|
A value used for ordering the assessors within a risk profile. |
|
|
Define a group to which this risk assessor belongs. Used for UI. Default is: Risk Assessors |
|
|
Define an icon for the risk assessor |
|
|
Minimum amount of retries to have to score |
|
|
Maximum amount of retries to have to score |
|
|
Minimum amount of flags to have to score |
|
|
Maximum amount of retries to have to score |
|
|
The css icon class of the flag |
Environment management
Environments
Create a new environment
To create a new environment, send this request:
POST /api/v1/environments
{
"title" : "New environment",
"description" : "Environment description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage0a4c27442b364c6790aa2354dcc8d657",
"labelIds" : null
}
$ curl 'http://localhost:5516/api/v1/environments' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "New environment",
"description" : "Environment description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage0a4c27442b364c6790aa2354dcc8d657",
"labelIds" : null
}'
$ echo '{
"title" : "New environment",
"description" : "Environment description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage0a4c27442b364c6790aa2354dcc8d657",
"labelIds" : null
}' | http POST 'http://localhost:5516/api/v1/environments' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 326
{
"id" : "Configuration/environmentManagement/Environment1899c8b0a8644d4d93c98ec518fe8215",
"title" : "New environment",
"description" : "Environment description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage0a4c27442b364c6790aa2354dcc8d657",
"title" : "DEV"
},
"labels" : [ ]
}
Find an environment by ID
To find an environment by its ID, send this request:
GET /api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment ID |
The response contains the found environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 474
{
"id" : "Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage7430e16dc20240e699dc0b9b2d72b73c",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabele9fe9ad66ffa4be9ba018022064f80ba",
"title" : "AWS",
"color" : "#ff00ff"
} ]
}
Update an environment
To update an existing environment, send this request:
PUT /api/v1/environments/Configuration/environmentManagement/Environmentfecd427f96714513ade2f226037ca823
{
"title" : "New environment title",
"description" : "New description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage42642b2259764d5c9520765922015835",
"labelIds" : [ "Configuration/environmentManagement/EnvironmentLabel70bc27fde9b1417295bccf85bb9cf820" ]
}
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentfecd427f96714513ade2f226037ca823' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "New environment title",
"description" : "New description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage42642b2259764d5c9520765922015835",
"labelIds" : [ "Configuration/environmentManagement/EnvironmentLabel70bc27fde9b1417295bccf85bb9cf820" ]
}'
$ echo '{
"title" : "New environment title",
"description" : "New description",
"stageId" : "Configuration/environmentManagement/EnvironmentStage42642b2259764d5c9520765922015835",
"labelIds" : [ "Configuration/environmentManagement/EnvironmentLabel70bc27fde9b1417295bccf85bb9cf820" ]
}' | http PUT 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentfecd427f96714513ade2f226037ca823' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment ID |
The response contains the updated environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 474
{
"id" : "Configuration/environmentManagement/Environmentfecd427f96714513ade2f226037ca823",
"title" : "New environment title",
"description" : "New description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage42642b2259764d5c9520765922015835",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel70bc27fde9b1417295bccf85bb9cf820",
"title" : "AWS",
"color" : "#ff00ff"
} ]
}
Delete an environment
To delete an existing environment, send this request:
DELETE /api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment ID |
The response is empty with the status code 204 if the operation was successful.
Search environments
To search environments, send this request:
POST /api/v1/environments/search
{
"title" : "Env",
"stage" : "DEV",
"labels" : [ "AWS" ]
}
$ curl 'http://localhost:5516/api/v1/environments/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "Env",
"stage" : "DEV",
"labels" : [ "AWS" ]
}'
$ echo '{
"title" : "Env",
"stage" : "DEV",
"labels" : [ "AWS" ]
}' | http POST 'http://localhost:5516/api/v1/environments/search' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains a list of the found environments:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 478
[ {
"id" : "Configuration/environmentManagement/Environmenta9ea3218d7b2402fa5e7397d57f1d8ac",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStagee75056345a224739813cc6a5f48711c5",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel0af0e0916b764a039e86152c38ccc7d3",
"title" : "AWS",
"color" : "#ff00ff"
} ]
} ]
Get all environment reservations for environment
To get all reservations for environment, send this request:
GET /api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment ID |
The response contains a list of reservations for this environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 853
[ {
"id" : "Configuration/environmentManagement/EnvironmentReservationb7c055994ef947ee91bdd26169d263ec",
"startDate" : 1716358887525,
"endDate" : 1716366087556,
"note" : "Note",
"environment" : {
"id" : "Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage0390a87d491f46b2b9767eb0d78e7ad0",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel2ba2f30e964e4cef8688351125196d28",
"title" : "AWS",
"color" : "#ff00ff"
} ]
},
"applications" : [ {
"id" : "Configuration/environmentManagement/Application7c730c919128451a876cca7e3bda9368",
"title" : "APP1"
} ]
} ]
Get deployable applications for environment
To get all deployable applications for environment, send this request:
GET /api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment ID |
The response contains a list of applications that are allowed to be deployed on this environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 234
[ {
"id" : "Configuration/environmentManagement/Application6d78ee7f755f4baa9d7ed5221fafcd7b",
"title" : "APP2"
}, {
"id" : "Configuration/environmentManagement/Application43f47d94484d433392890d5292f79b0e",
"title" : "APP1"
} ]
Environment reservations
Create a new environment reservation
To create a new environment reservation, send this request:
POST /api/v1/environments/reservations
{
"startDate" : 1716358913858,
"endDate" : 1716366113858,
"note" : "Note",
"environmentId" : "Configuration/environmentManagement/Environment86fcd82a456d417f8d037afcd32cb21d",
"applicationIds" : [ "Configuration/environmentManagement/Application8798cfc3460e40dd84017880c1cd77c0" ]
}
$ curl 'http://localhost:5516/api/v1/environments/reservations' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"startDate" : 1716358913858,
"endDate" : 1716366113858,
"note" : "Note",
"environmentId" : "Configuration/environmentManagement/Environment86fcd82a456d417f8d037afcd32cb21d",
"applicationIds" : [ "Configuration/environmentManagement/Application8798cfc3460e40dd84017880c1cd77c0" ]
}'
$ echo '{
"startDate" : 1716358913858,
"endDate" : 1716366113858,
"note" : "Note",
"environmentId" : "Configuration/environmentManagement/Environment86fcd82a456d417f8d037afcd32cb21d",
"applicationIds" : [ "Configuration/environmentManagement/Application8798cfc3460e40dd84017880c1cd77c0" ]
}' | http POST 'http://localhost:5516/api/v1/environments/reservations' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created reservation:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 849
{
"id" : "Configuration/environmentManagement/EnvironmentReservation8acfae0bebc44b80a6e5897365eb5e32",
"startDate" : 1716358913858,
"endDate" : 1716366113858,
"note" : "Note",
"environment" : {
"id" : "Configuration/environmentManagement/Environment86fcd82a456d417f8d037afcd32cb21d",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage03016ac53ff54558bf7d773b624231da",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel3c9abd64676f4168a50d145ab652c493",
"title" : "AWS",
"color" : "#ff00ff"
} ]
},
"applications" : [ {
"id" : "Configuration/environmentManagement/Application8798cfc3460e40dd84017880c1cd77c0",
"title" : "APP1"
} ]
}
Find an environment reservation by ID
To find an environment reservation by its ID, send this request:
GET /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
ID of the environment reservation |
The response contains the found reservation:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 849
{
"id" : "Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f",
"startDate" : 1716358915141,
"endDate" : 1716362515141,
"note" : "Note",
"environment" : {
"id" : "Configuration/environmentManagement/Environmente803fa071f464ab3a31dff5d7d95854b",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage7eb2d6a4a50f41cea167e0325d139dae",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel62af300a9d704e5795b8b31d319ff2e0",
"title" : "AWS",
"color" : "#ff00ff"
} ]
},
"applications" : [ {
"id" : "Configuration/environmentManagement/Application917b440761b84ff0b98e1b08b885978b",
"title" : "APP1"
} ]
}
Update an environment reservation
To update an existing enviornment reservation, send this request:
PUT /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationbab9b23feebb4fcaa57bdce4611bdeae
{
"startDate" : 1716358914279,
"endDate" : 1716362514279,
"note" : "New note",
"environmentId" : "Configuration/environmentManagement/Environment978564f9ca464e31b7b8d5df276d28a1",
"applicationIds" : [ "Configuration/environmentManagement/Application792e49101ce141feadbbfc8b92a6692c" ]
}
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationbab9b23feebb4fcaa57bdce4611bdeae' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"startDate" : 1716358914279,
"endDate" : 1716362514279,
"note" : "New note",
"environmentId" : "Configuration/environmentManagement/Environment978564f9ca464e31b7b8d5df276d28a1",
"applicationIds" : [ "Configuration/environmentManagement/Application792e49101ce141feadbbfc8b92a6692c" ]
}'
$ echo '{
"startDate" : 1716358914279,
"endDate" : 1716362514279,
"note" : "New note",
"environmentId" : "Configuration/environmentManagement/Environment978564f9ca464e31b7b8d5df276d28a1",
"applicationIds" : [ "Configuration/environmentManagement/Application792e49101ce141feadbbfc8b92a6692c" ]
}' | http PUT 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationbab9b23feebb4fcaa57bdce4611bdeae' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
ID of the environment reservation |
The response contains the updated reservation:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 695
{
"id" : "Configuration/environmentManagement/EnvironmentReservationbab9b23feebb4fcaa57bdce4611bdeae",
"startDate" : 1716358914279,
"endDate" : 1716362514279,
"note" : "New note",
"environment" : {
"id" : "Configuration/environmentManagement/Environment978564f9ca464e31b7b8d5df276d28a1",
"title" : "Environment2",
"description" : "Environment2 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage41ee4ed40d0b42f287e7b5609924cc01",
"title" : "DEV"
},
"labels" : [ ]
},
"applications" : [ {
"id" : "Configuration/environmentManagement/Application792e49101ce141feadbbfc8b92a6692c",
"title" : "APP1"
} ]
}
Delete an environment reservation
To delete an existing environment reservation, send this request:
DELETE /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
ID of the environment reservation |
The response is empty with the status code 204 if the operation was successful.
Search environment reservations
To search environment reservations, send this request:
POST /api/v1/environments/reservations/search
{
"environmentTitle" : "Env",
"stages" : [ "DEV" ],
"labels" : [ "AWS" ],
"applications" : [ "APP1" ],
"from" : 1716358911338,
"to" : 1716384111338
}
$ curl 'http://localhost:5516/api/v1/environments/reservations/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"environmentTitle" : "Env",
"stages" : [ "DEV" ],
"labels" : [ "AWS" ],
"applications" : [ "APP1" ],
"from" : 1716358911338,
"to" : 1716384111338
}'
$ echo '{
"environmentTitle" : "Env",
"stages" : [ "DEV" ],
"labels" : [ "AWS" ],
"applications" : [ "APP1" ],
"from" : 1716358911338,
"to" : 1716384111338
}' | http POST 'http://localhost:5516/api/v1/environments/reservations/search' \
'Content-Type:application/json' \
'Accept:application/json'
The difference between start and end date in search filter is maximum of 90 days. |
The response contains a list of environments and reservations created on them:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1197
[ {
"id" : "Configuration/environmentManagement/Environment20b221edbcfe4642ae5014b209273e07",
"title" : "Environment1",
"description" : "Environment1 description",
"stage" : {
"id" : "Configuration/environmentManagement/EnvironmentStage8f2200198d0144889a164374900fc8c5",
"title" : "DEV"
},
"labels" : [ {
"id" : "Configuration/environmentManagement/EnvironmentLabel9f6998258ed440fc8b29f06bd0994640",
"title" : "AWS",
"color" : "#ff00ff"
} ],
"reservations" : [ {
"id" : "Configuration/environmentManagement/EnvironmentReservationf979612d089e44d183878e07f74e9c3b",
"startDate" : 1716358911338,
"endDate" : 1716362511338,
"note" : "Note",
"applications" : [ {
"id" : "Configuration/environmentManagement/Applicationa90c95d259a340518038b158c9dea530",
"title" : "APP1"
} ]
}, {
"id" : "Configuration/environmentManagement/EnvironmentReservationc6f4c4f76424428cb64b51f55da189b2",
"startDate" : 1716358911338,
"endDate" : 1716384111338,
"note" : null,
"applications" : [ {
"id" : "Configuration/environmentManagement/Applicationa90c95d259a340518038b158c9dea530",
"title" : "APP1"
} ]
} ]
} ]
Add an application to an environment reservation
To add an application to an environemt reservation, send this request:
POST /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
ID of the environment reservation |
and request parameters and their description:
Parameter | Description |
---|---|
|
The ID of the application to be added to the environment reservation |
The response is empty with the status code 204 if the operation was successful.
Environment stages
Create a new environment stage
To create a new environment stage, send this request:
POST /api/v1/environments/stages
{
"title" : "PROD1"
}
$ curl 'http://localhost:5516/api/v1/environments/stages' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "PROD1"
}'
$ echo '{
"title" : "PROD1"
}' | http POST 'http://localhost:5516/api/v1/environments/stages' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created stage:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 120
{
"id" : "Configuration/environmentManagement/EnvironmentStage5a7334221789412ebedd4e82aa97a89c",
"title" : "PROD1"
}
Find an environment stage by ID
To find an environment stage by its ID, send this request:
GET /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f
$ curl 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment stage ID |
The response contains the found stage:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 119
{
"id" : "Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f",
"title" : "DEV1"
}
Update an environment stage
To update an existing environment stage, send this request:
PUT /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage3d08e617e6574a9eab01b8709f1db3f5
{
"title" : "TEST1"
}
$ curl 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage3d08e617e6574a9eab01b8709f1db3f5' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "TEST1"
}'
$ echo '{
"title" : "TEST1"
}' | http PUT 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage3d08e617e6574a9eab01b8709f1db3f5' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment stage ID |
The response contains the updated stage:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 120
{
"id" : "Configuration/environmentManagement/EnvironmentStage3d08e617e6574a9eab01b8709f1db3f5",
"title" : "TEST1"
}
Delete an environment stage
To delete an existing environment stage, send this request:
DELETE /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55
$ curl 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment stage ID |
The response is empty with the status code 204 if the operation was successful.
Search environment stages
To search environment stages, send this request:
POST /api/v1/environments/stages/search
{
"title" : "TE"
}
$ curl 'http://localhost:5516/api/v1/environments/stages/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "TE"
}'
$ echo '{
"title" : "TE"
}' | http POST 'http://localhost:5516/api/v1/environments/stages/search' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains a list of the found stages:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 124
[ {
"id" : "Configuration/environmentManagement/EnvironmentStage8744fd08049b4f0eaaa619be699e0a68",
"title" : "TEST1"
} ]
Environment labels
Create a new environment label
To create a new environment label, send this request:
POST /api/v1/environments/labels
{
"title" : "Azure",
"color" : "#11aabb"
}
$ curl 'http://localhost:5516/api/v1/environments/labels' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "Azure",
"color" : "#11aabb"
}'
$ echo '{
"title" : "Azure",
"color" : "#11aabb"
}' | http POST 'http://localhost:5516/api/v1/environments/labels' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created label:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 143
{
"id" : "Configuration/environmentManagement/EnvironmentLabel71e490c2d6a347beaa6f73fa35ba1812",
"title" : "Azure",
"color" : "#11aabb"
}
Find an environment label by ID
To find an environment label by its ID, send this request:
GET /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08
$ curl 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment label ID |
The response contains the found label:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 141
{
"id" : "Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08",
"title" : "AWS",
"color" : "#ff00ff"
}
Update an environment label
To update an existing environment label, send this request:
PUT /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel413cf82a2299418c82230820d3424f1d
{
"title" : "RDS",
"color" : "#ff00ff"
}
$ curl 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel413cf82a2299418c82230820d3424f1d' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "RDS",
"color" : "#ff00ff"
}'
$ echo '{
"title" : "RDS",
"color" : "#ff00ff"
}' | http PUT 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel413cf82a2299418c82230820d3424f1d' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment label ID |
The response contains the updated label:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 141
{
"id" : "Configuration/environmentManagement/EnvironmentLabel413cf82a2299418c82230820d3424f1d",
"title" : "RDS",
"color" : "#ff00ff"
}
Delete an environment label
To delete an existing environment label, send this request:
DELETE /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3
$ curl 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Environment label ID |
The response is empty with the status code 204 if the operation was successful.
Search environment labels
To search environment labels, send this request:
POST /api/v1/environments/labels/search
{
"title" : "op"
}
$ curl 'http://localhost:5516/api/v1/environments/labels/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "op"
}'
$ echo '{
"title" : "op"
}' | http POST 'http://localhost:5516/api/v1/environments/labels/search' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains a list of the found labels:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 151
[ {
"id" : "Configuration/environmentManagement/EnvironmentLabeld3929f3fb3eb488f95f4af1fc4dd5f2d",
"title" : "Openshift",
"color" : "#aaaaaa"
} ]
Applications
Create a new application
To create a new application, send this request:
POST /api/v1/applications
{
"title" : "New application",
"environmentIds" : [ "Configuration/environmentManagement/Environmentcbe72978c9c44cd7b95f8ace206c82da" ]
}
$ curl 'http://localhost:5516/api/v1/applications' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "New application",
"environmentIds" : [ "Configuration/environmentManagement/Environmentcbe72978c9c44cd7b95f8ace206c82da" ]
}'
$ echo '{
"title" : "New application",
"environmentIds" : [ "Configuration/environmentManagement/Environmentcbe72978c9c44cd7b95f8ace206c82da" ]
}' | http POST 'http://localhost:5516/api/v1/applications' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created application:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 270
{
"id" : "Configuration/environmentManagement/Application72a4370309724a7283423108d0b02189",
"title" : "New application",
"environments" : [ {
"id" : "Configuration/environmentManagement/Environmentcbe72978c9c44cd7b95f8ace206c82da",
"title" : "ENV1"
} ]
}
Find an application by ID
To find an application by its ID, send this request:
GET /api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25
$ curl 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Application ID |
The response contains the found application:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 267
{
"id" : "Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25",
"title" : "Application1",
"environments" : [ {
"id" : "Configuration/environmentManagement/Environmentcd38341ae26f47169c74f70c1be3f95b",
"title" : "ENV1"
} ]
}
Update an application
To update an existing application, send this request:
PUT /api/v1/applications/Configuration/environmentManagement/Applicationc5dcccc22c3e4091b43f1262077618ac
{
"title" : "New application title",
"environmentIds" : [ "Configuration/environmentManagement/Environment992818a7c23b48b59d1b9736e71035b2" ]
}
$ curl 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Applicationc5dcccc22c3e4091b43f1262077618ac' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "New application title",
"environmentIds" : [ "Configuration/environmentManagement/Environment992818a7c23b48b59d1b9736e71035b2" ]
}'
$ echo '{
"title" : "New application title",
"environmentIds" : [ "Configuration/environmentManagement/Environment992818a7c23b48b59d1b9736e71035b2" ]
}' | http PUT 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Applicationc5dcccc22c3e4091b43f1262077618ac' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Application ID |
The response contains the updated environment:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 276
{
"id" : "Configuration/environmentManagement/Applicationc5dcccc22c3e4091b43f1262077618ac",
"title" : "New application title",
"environments" : [ {
"id" : "Configuration/environmentManagement/Environment992818a7c23b48b59d1b9736e71035b2",
"title" : "ENV1"
} ]
}
Delete an application
To delete an existing application, send this request:
DELETE /api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936
$ curl 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Application ID |
The response is empty with the status code 204 if the operation was successful.
Search applications
To search applications, send this request:
POST /api/v1/applications/search
{
"title" : "App",
"environments" : [ "ENV1" ]
}
$ curl 'http://localhost:5516/api/v1/applications/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "App",
"environments" : [ "ENV1" ]
}'
$ echo '{
"title" : "App",
"environments" : [ "ENV1" ]
}' | http POST 'http://localhost:5516/api/v1/applications/search' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains a list of the found applications:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 540
[ {
"id" : "Configuration/environmentManagement/Application9d7e0131e1fc4b3185a030ee5011d955",
"title" : "Application1",
"environments" : [ {
"id" : "Configuration/environmentManagement/Environment77ff0dbac5674c6087c1b267f0120eff",
"title" : "ENV1"
} ]
}, {
"id" : "Configuration/environmentManagement/Applicationf44de0c0edcb46daa018e5edf48c7f60",
"title" : "Application2",
"environments" : [ {
"id" : "Configuration/environmentManagement/Environment77ff0dbac5674c6087c1b267f0120eff",
"title" : "ENV1"
} ]
} ]
Triggers
Search Triggers
To search triggers, send this request:
GET /api/v1/triggers?triggerTitle=new%20trigger&templateTitle=new%20template&sort=triggerTitle,asc&page=0&resultsPerPage=100
$ curl 'http://localhost:5516/api/v1/triggers?triggerTitle=new%20trigger&templateTitle=new%20template&sort=triggerTitle,asc&page=0&resultsPerPage=100' -i -X GET \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/triggers?triggerTitle=new%20trigger&templateTitle=new%20template&sort=triggerTitle,asc&page=0&resultsPerPage=100' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The (optional) case-insensitive title matches the part of the trigger title. |
|
The (optional) case-insensitive title matches the part of the release template title. |
|
The (optional) sort column with asc or desc order |
|
The (optional) page of results to return; defaults at 0. |
|
The (optional) number of results per page; defaults at 100. |
The response contains a list of the found triggers:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 706
{
"totalElements" : 1,
"totalPages" : 1,
"size" : 100,
"number" : 0,
"numberOfElements" : 1,
"content" : [ {
"triggerId" : "Applications/Folder01345a690c16b345168751d62934e912/Trigger321",
"triggerTitle" : "new trigger",
"triggerType" : "unit.TestTrigger",
"triggerEnabled" : false,
"templateTitle" : "new template",
"templateId" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"folderTitle" : "Folder 7",
"description" : "new trigger's description!",
"editable" : true,
"lastRunDate" : null,
"lastRunStatus" : null
} ],
"first" : true,
"last" : true
}
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
The total amount of elements. |
|
|
The number of total pages. |
|
|
The size of the Slice. |
|
|
The number of the current Slice. |
|
|
The number of elements currently on this Slice. |
|
|
The current Slice is the first one. |
|
|
The current Slice is the last one. |
|
|
This field contains ID of trigger. |
|
|
The title of the trigger. |
|
|
The description of the trigger. |
|
|
The type of the trigger. |
|
|
The trigger is enabled. |
|
|
This field contains ID of template. |
|
|
The title of the template. |
|
|
This field contains ID of folder. |
|
|
The title of the folder |
|
|
The last run date of the trigger. |
|
|
The last run status of the trigger. |
Create Trigger
To create a trigger send this request:
POST /api/v1/triggers
{
"id" : null,
"type" : "unit.TestTrigger",
"title" : "Test trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"releaseFolder" : "Applications/Folder01345a690c16b345168751d62934e912",
"count" : 0,
"username" : "admin",
"password" : "admin"
}
$ curl 'http://localhost:5516/api/v1/triggers' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "unit.TestTrigger",
"title" : "Test trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"releaseFolder" : "Applications/Folder01345a690c16b345168751d62934e912",
"count" : 0,
"username" : "admin",
"password" : "admin"
}'
$ echo '{
"id" : null,
"type" : "unit.TestTrigger",
"title" : "Test trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"releaseFolder" : "Applications/Folder01345a690c16b345168751d62934e912",
"count" : 0,
"username" : "admin",
"password" : "admin"
}' | http POST 'http://localhost:5516/api/v1/triggers' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following patameters:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.ReleaseTrigger'. |
|
|
Symbolic name for the trigger |
|
|
The description of the trigger. |
|
|
Enabled |
|
|
Trigger State |
|
|
Folder that the trigger belongs to. |
|
|
Allows parallel execution of triggers (ie parallel processing of execute requests/scripts). |
|
|
Last run date. |
|
|
Last run execution status. |
|
|
Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression |
|
|
Interval in seconds (REPEAT) or as a cron expression (CRON). The cron pattern is a list of six fields separated by a single space; these fields represent second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of their English names. For example: 0 0 * * * * = the top of every hour of every day; */10 * * * * * = every ten seconds; 0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays |
|
|
Set this property to true to trigger a new release on the initial trigger fire. Otherwise, the first release will be triggered on the next state change |
|
|
Name given to releases created by this trigger. This field can contain variables. |
|
|
Not in Use. Keep it for backwards compatibility. |
|
|
Variables |
|
|
Template |
|
|
Tags |
|
|
Folder where releases generated by the trigger will be created. |
You receive the created trigger as a response containing its normal fields.
Create event-based Trigger
To create an event-based trigger send this request:
POST /api/v1/triggers
{
"id" : null,
"type" : "events.EventBasedTrigger",
"title" : "Webhook trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"mappedProperties" : [ {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "templateId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912/Release123"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseTitle",
"value" : "Created release from webhook trigger"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "tags",
"variableKey" : "event.pull_request.tags"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "variables[prTitle]",
"variableKey" : "event.pull_request.title"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseFolderId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912"
} ],
"triggerActionType" : "xlrelease.CreateReleaseFromTemplateAction",
"eventSource" : "Applications/Folder01345a690c16b345168751d62934e912/ConfigurationTest_source_1",
"eventType" : "events.HttpRequestEvent",
"eventFilter" : {
"id" : null,
"type" : "events.GroovyEventFilter",
"trigger" : null,
"expr" : "headers['X-GitHub-Event'] == 'pull_request'"
}
}
$ curl 'http://localhost:5516/api/v1/triggers' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "events.EventBasedTrigger",
"title" : "Webhook trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"mappedProperties" : [ {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "templateId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912/Release123"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseTitle",
"value" : "Created release from webhook trigger"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "tags",
"variableKey" : "event.pull_request.tags"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "variables[prTitle]",
"variableKey" : "event.pull_request.title"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseFolderId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912"
} ],
"triggerActionType" : "xlrelease.CreateReleaseFromTemplateAction",
"eventSource" : "Applications/Folder01345a690c16b345168751d62934e912/ConfigurationTest_source_1",
"eventType" : "events.HttpRequestEvent",
"eventFilter" : {
"id" : null,
"type" : "events.GroovyEventFilter",
"trigger" : null,
"expr" : "headers['X-GitHub-Event'] == 'pull_request'"
}
}'
$ echo '{
"id" : null,
"type" : "events.EventBasedTrigger",
"title" : "Webhook trigger",
"enabled" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"mappedProperties" : [ {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "templateId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912/Release123"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseTitle",
"value" : "Created release from webhook trigger"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "tags",
"variableKey" : "event.pull_request.tags"
}, {
"id" : null,
"type" : "xlrelease.VariableValue",
"targetProperty" : "variables[prTitle]",
"variableKey" : "event.pull_request.title"
}, {
"id" : null,
"type" : "xlrelease.StringValue",
"targetProperty" : "releaseFolderId",
"value" : "Applications/Folder01345a690c16b345168751d62934e912"
} ],
"triggerActionType" : "xlrelease.CreateReleaseFromTemplateAction",
"eventSource" : "Applications/Folder01345a690c16b345168751d62934e912/ConfigurationTest_source_1",
"eventType" : "events.HttpRequestEvent",
"eventFilter" : {
"id" : null,
"type" : "events.GroovyEventFilter",
"trigger" : null,
"expr" : "headers['X-GitHub-Event'] == 'pull_request'"
}
}' | http POST 'http://localhost:5516/api/v1/triggers' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following patameters:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'events.EventBasedTrigger'. |
|
|
Symbolic name for the trigger |
|
|
The description of the trigger. |
|
|
Enabled |
|
|
Trigger State |
|
|
Folder that the trigger belongs to. |
|
|
Allows parallel execution of triggers (ie parallel processing of execute requests/scripts). |
|
|
Last run date. |
|
|
Last run execution status. |
|
|
Trigger action property mappings |
|
|
The action to execute when the trigger fires |
|
|
The HTTP endpoint or the typed event source on which the trigger listens |
|
|
The type of the event to listen for |
|
|
Filter expression to conditionally execute the trigger depending on the data inside the event |
You receive the created event-based trigger as a response containing its normal fields.
Update Trigger
To update a trigger send this request:
PUT /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084
{
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084",
"type" : "unit.TestTrigger",
"title" : "Updated trigger title",
"enabled" : false,
"triggerState" : "",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"count" : 0,
"username" : "admin",
"password" : "********"
}
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084",
"type" : "unit.TestTrigger",
"title" : "Updated trigger title",
"enabled" : false,
"triggerState" : "",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"count" : 0,
"username" : "admin",
"password" : "********"
}'
$ echo '{
"id" : "Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084",
"type" : "unit.TestTrigger",
"title" : "Updated trigger title",
"enabled" : false,
"triggerState" : "",
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"allowParallelExecution" : false,
"pollType" : "REPEAT",
"periodicity" : "60",
"initialFire" : false,
"releaseTitle" : "Created release from test trigger",
"variables" : [ ],
"template" : "Applications/Folder01345a690c16b345168751d62934e912/Release123",
"tags" : [ ],
"count" : 0,
"username" : "admin",
"password" : "********"
}' | http PUT 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger9873234084' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following patameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.ReleaseTrigger'. |
|
|
Symbolic name for the trigger |
|
|
The description of the trigger. |
|
|
Enabled |
|
|
Trigger State |
|
|
Folder that the trigger belongs to. |
|
|
Allows parallel execution of triggers (ie parallel processing of execute requests/scripts). |
|
|
Last run date. |
|
|
Last run execution status. |
|
|
Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression |
|
|
Interval in seconds (REPEAT) or as a cron expression (CRON). The cron pattern is a list of six fields separated by a single space; these fields represent second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of their English names. For example: 0 0 * * * * = the top of every hour of every day; */10 * * * * * = every ten seconds; 0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays |
|
|
Set this property to true to trigger a new release on the initial trigger fire. Otherwise, the first release will be triggered on the next state change |
|
|
Name given to releases created by this trigger. This field can contain variables. |
|
|
Not in Use. Keep it for backwards compatibility. |
|
|
Variables |
|
|
Template |
|
|
Tags |
|
|
Folder where releases generated by the trigger will be created. |
You receive the updated trigger as a response containing its normal fields.
Enable Trigger
To enable trigger, send this request:
PUT /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable' -i -X PUT
$ http PUT 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
To enable multiple triggers, send this request:
POST /api/v1/triggers/enable
[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]
$ curl 'http://localhost:5516/api/v1/triggers/enable' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]'
$ echo '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]' | http POST 'http://localhost:5516/api/v1/triggers/enable' \
'Content-Type:application/json' \
'Accept:application/json'
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This fields contains IDs of updated triggers. |
To enable multiple triggers which user has access to, send this request:
POST /api/v1/triggers/enable/all
$ curl 'http://localhost:5516/api/v1/triggers/enable/all' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/triggers/enable/all' \
'Accept:application/json'
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This fields contains IDs of updated triggers. |
Disable Trigger
To disable trigger, send this request:
PUT /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable' -i -X PUT
$ http PUT 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
To disable multiple triggers, send this request:
POST /api/v1/triggers/disable
[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]
$ curl 'http://localhost:5516/api/v1/triggers/disable' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]'
$ echo '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]' | http POST 'http://localhost:5516/api/v1/triggers/disable' \
'Content-Type:application/json' \
'Accept:application/json'
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This fields contains IDs of updated triggers. |
To disable multiple triggers which user has access to, send this request:
POST /api/v1/triggers/disable/all
$ curl 'http://localhost:5516/api/v1/triggers/disable/all' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/triggers/disable/all' \
'Accept:application/json'
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This fields contains IDs of updated triggers. |
Delete Trigger
To delete trigger, send this request:
DELETE /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
Execute Trigger
To execute trigger, send this request:
POST /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
Get Trigger
To find a trigger using a specific trigger ID, send this request:
GET /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger. |
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'xlrelease.ReleaseTrigger'. |
|
|
Symbolic name for the trigger |
|
|
The description of the trigger. |
|
|
Enabled |
|
|
Trigger State |
|
|
Folder that the trigger belongs to. |
|
|
Allows parallel execution of triggers (ie parallel processing of execute requests/scripts). |
|
|
Last run date. |
|
|
Last run execution status. |
|
|
Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression |
|
|
Interval in seconds (REPEAT) or as a cron expression (CRON). The cron pattern is a list of six fields separated by a single space; these fields represent second, minute, hour, day, month, weekday. Month and weekday names can be given as the first three letters of their English names. For example: 0 0 * * * * = the top of every hour of every day; */10 * * * * * = every ten seconds; 0 0 9-17 * * MON-FRI = on the hour nine-to-five weekdays |
|
|
Set this property to true to trigger a new release on the initial trigger fire. Otherwise, the first release will be triggered on the next state change |
|
|
Name given to releases created by this trigger. This field can contain variables. |
|
|
Not in Use. Keep it for backwards compatibility. |
|
|
Variables |
|
|
Template |
|
|
Tags |
|
|
Folder where releases generated by the trigger will be created. |
Delivery Patterns
Create a delivery pattern
To create a new delivery pattern, send this request:
POST /api/v1/delivery-patterns
{
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0",
"type" : "delivery.Delivery",
"title" : "New pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage7350aa81dd5440a3a8166aaec4c63330",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stageedd7a9daa119431bb28fa4355c73acee",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Staged90e066dfac64938ad3c497d4fa85839",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage4f72f03eebb74f5bb9d43408d497909d",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0",
"type" : "delivery.Delivery",
"title" : "New pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage7350aa81dd5440a3a8166aaec4c63330",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stageedd7a9daa119431bb28fa4355c73acee",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Staged90e066dfac64938ad3c497d4fa85839",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage4f72f03eebb74f5bb9d43408d497909d",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
}'
$ echo '{
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0",
"type" : "delivery.Delivery",
"title" : "New pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage7350aa81dd5440a3a8166aaec4c63330",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stageedd7a9daa119431bb28fa4355c73acee",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Staged90e066dfac64938ad3c497d4fa85839",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery3e2fbccff0df4202abdfe73d704528e0/Stage4f72f03eebb74f5bb9d43408d497909d",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns' \
'Content-Type:application/json' \
'Accept:application/json'
The response contains the created pattern:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1437
{
"id" : "Deliveries/Delivery073c53d113ee48daa11ce00876c6b58c",
"type" : "delivery.Delivery",
"title" : "New pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery073c53d113ee48daa11ce00876c6b58c/Stage7350aa81dd5440a3a8166aaec4c63330",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery073c53d113ee48daa11ce00876c6b58c/Stageedd7a9daa119431bb28fa4355c73acee",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery073c53d113ee48daa11ce00876c6b58c/Staged90e066dfac64938ad3c497d4fa85839",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery073c53d113ee48daa11ce00876c6b58c/Stage4f72f03eebb74f5bb9d43408d497909d",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
}
Find a delivery pattern by ID
To find a delivery pattern by its ID, send this request:
GET /api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response contains the found pattern:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3373
{
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09",
"type" : "delivery.Delivery",
"title" : "Test pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09/Stage92950777fe7147b78e6b244f96dbe9f8",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09/Stage7d31c1e2acfa40d7bddca34ab58b3497",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09/Stage6257137c90ef4b68bc597a1b217fa34d",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09/Stagedcad87404bc8415cb67695d37d78b631",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Deliverydbd5361addc041efb379b3abb4511c09/TrackedIteme357a29c0fa844609e9b194155d50398",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:43.118+02:00",
"modifiedDate" : "2024-05-22T08:21:43.118+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : false,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Find a delivery pattern by ID or title
To find a delivery pattern by its ID or title, send this request:
GET /api/v1/delivery-patterns/Test%20pattern
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Test%20pattern' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Test%20pattern' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id or title of the pattern |
The response contains the found pattern:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3373
{
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387",
"type" : "delivery.Delivery",
"title" : "Test pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387/Stage037af649fcd744f7b6990741c21a9f6c",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387/Stageae9a921cb5b141dabda657f4d669f15e",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387/Stagedc715891618f4468a45e9bb39a34c133",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387/Stagea6d710cb577b4276a2955b75769088e3",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Delivery4d3e4a17cbe84570ae7bde1c6e196387/TrackedItem6acb25d557ad42b7af891a8a138be3b4",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:37.072+02:00",
"modifiedDate" : "2024-05-22T08:21:37.072+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : false,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Update a delivery pattern
To update an existing delivery pattern, send this request:
PUT /api/v1/delivery-patterns/Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9
{
"id" : "Deliveries/Deliverya6b7941431ff4277b83be5f44fd3e456",
"type" : "delivery.Delivery",
"title" : "Updated pattern",
"status" : "TEMPLATE",
"plannedDuration" : 72,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "Deliveries/Deliverya6b7941431ff4277b83be5f44fd3e456",
"type" : "delivery.Delivery",
"title" : "Updated pattern",
"status" : "TEMPLATE",
"plannedDuration" : 72,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}'
$ echo '{
"id" : "Deliveries/Deliverya6b7941431ff4277b83be5f44fd3e456",
"type" : "delivery.Delivery",
"title" : "Updated pattern",
"status" : "TEMPLATE",
"plannedDuration" : 72,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}' | http PUT 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response contains the updated pattern:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3472
{
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9",
"type" : "delivery.Delivery",
"title" : "Updated pattern",
"status" : "TEMPLATE",
"startDate" : "2024-05-22T08:21:50.425+02:00",
"endDate" : "2024-05-25T08:21:50.425+02:00",
"plannedDuration" : 72,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9/Stagedf5c36fe27c04239a3308979e1624d18",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9/Stagefe93639368d34906ac0981789b7c10af",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9/Stageff2dd3047a9f453f9774dd69d030ddd5",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9/Stagee628a36e1b174885889b04f79417a275",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Deliveryfdfb9a6742f8426eb55a879b3c54c7b9/TrackedIteme29f0b56da2043c3a00a0226cd0a52ca",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:50.255+02:00",
"modifiedDate" : "2024-05-22T08:21:50.255+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : false,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Delete a delivery pattern
To delete an existing delivery pattern, send this request:
DELETE /api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response is empty with the status code 204 if the operation was successful.
Create a delivery from a pattern
To create a delivery from a pattern, send this request:
POST /api/v1/delivery-patterns/Deliveries/Delivery8db8fd164d3f424081beca1b61d885ea/create
{
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"title" : "Test delivery",
"description" : "Test delivery description",
"duration" : 0,
"startDate" : 1716358898890,
"endDate" : 1716387698923,
"autoComplete" : false
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery8db8fd164d3f424081beca1b61d885ea/create' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"title" : "Test delivery",
"description" : "Test delivery description",
"duration" : 0,
"startDate" : 1716358898890,
"endDate" : 1716387698923,
"autoComplete" : false
}'
$ echo '{
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"title" : "Test delivery",
"description" : "Test delivery description",
"duration" : 0,
"startDate" : 1716358898890,
"endDate" : 1716387698923,
"autoComplete" : false
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery8db8fd164d3f424081beca1b61d885ea/create' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
Path | Type | Description |
---|---|---|
|
|
The folder ID where the delivery will be stored |
|
|
The title of the delivery |
|
|
The description of the delivery |
|
|
The duration of the delivery. Will be used only if start and end date are null |
|
|
The start date of the delivery |
|
|
The end date of the delivery |
|
|
Complete delivery when all items are completed, skipped or de-scoped in all stages |
The response contains the created delivery:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5136
{
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3",
"type" : "delivery.Delivery",
"title" : "Test delivery",
"description" : "Test delivery description",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:38.890+02:00",
"endDate" : "2024-05-22T16:21:38.923+02:00",
"plannedDuration" : 8,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "Deliveries/Delivery8db8fd164d3f424081beca1b61d885ea",
"stages" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stage41c26a16cf7e463ab5d836a0aee23391",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stage41c26a16cf7e463ab5d836a0aee23391/StageTrackedItem0e37f6dfd8e64e55ba60c7aa85eaf12a",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/TrackedItemd3cd56ced367444e92af5a4feb4c4dfc",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagef75160b286e04b7b8733d1a00822f35d",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagef75160b286e04b7b8733d1a00822f35d/StageTrackedItemffdde82e13c34125a9fe9b7fa9347d71",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/TrackedItemd3cd56ced367444e92af5a4feb4c4dfc",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagea3321b072d524c329053fa41d8060b2d",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagea3321b072d524c329053fa41d8060b2d/StageTrackedItemd5afb29c5fea49b8bc67cc907a5f4e5b",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/TrackedItemd3cd56ced367444e92af5a4feb4c4dfc",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagea55722acc67f487684bf41059f31c72b",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/Stagea55722acc67f487684bf41059f31c72b/StageTrackedItem9975a71c65204922aabc89254e84f93f",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/TrackedItemd3cd56ced367444e92af5a4feb4c4dfc",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Delivery47e2235b655048de81eef823b8e300b3/TrackedItemd3cd56ced367444e92af5a4feb4c4dfc",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:39.002+02:00",
"modifiedDate" : "2024-05-22T08:21:39.002+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : false,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Search delivery patterns
To search delivery patterns, send this request:
POST /api/v1/delivery-patterns/search?page=0&resultsPerPage=100
{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912"
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/search?page=0&resultsPerPage=100' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912"
}'
$ echo '{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912"
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns/search?page=0&resultsPerPage=100' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the pattern title |
|
|
Set to true to exact match the pattern title (case-insensitive) |
|
|
ID of the folder containing the patterns |
The response contains a list of the found patterns:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 3218
[ {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b",
"type" : "delivery.Delivery",
"title" : "Test pattern",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b/Stage662ae2390a6c4ea4a29116b3b994108e",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b/Staged63a286a2d9c4d54bb8f8b9d11d02857",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b/Stage9e83201bcbcf4bb9916e216bb4a37829",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b/Stage7937dd36cf3240de8b8c413fc02b8781",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Deliveryf531feecdb2c434dbf95776350864e7b/TrackedItem32c006baaf05422596f8d2ecffa81819",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:33.667+02:00",
"modifiedDate" : "2024-05-22T08:21:33.667+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false
}, {
"id" : "Deliveries/Delivery5c3a7963ce1442fbb221c9f9be6682d7",
"type" : "delivery.Delivery",
"title" : "Test pattern 2",
"status" : "TEMPLATE",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery5c3a7963ce1442fbb221c9f9be6682d7/Stage42a0bfbfaa764992a567c473fcfb16eb",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery5c3a7963ce1442fbb221c9f9be6682d7/Stage9d0e3cb3e078465495be5cf2695150d8",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery5c3a7963ce1442fbb221c9f9be6682d7/Stageab4d7c631dbb4fcbabbf8ce68e7d56df",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery5c3a7963ce1442fbb221c9f9be6682d7/Stagee1c8006340d3483aa315cfbcc2e25ee4",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
} ]
Create a stage
To create a stage in a delivery pattern, send this request:
POST /api/v1/delivery-patterns/Deliveries/Deliverybbb64b484ffe4742bef1f4149c56a9ff/stages/4
{
"id" : "414365982",
"type" : "delivery.Stage",
"title" : "New stage",
"status" : "OPEN",
"items" : [ ],
"owner" : "Owner user",
"team" : "Owner team"
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverybbb64b484ffe4742bef1f4149c56a9ff/stages/4' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "414365982",
"type" : "delivery.Stage",
"title" : "New stage",
"status" : "OPEN",
"items" : [ ],
"owner" : "Owner user",
"team" : "Owner team"
}'
$ echo '{
"id" : "414365982",
"type" : "delivery.Stage",
"title" : "New stage",
"status" : "OPEN",
"items" : [ ],
"owner" : "Owner user",
"team" : "Owner team"
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverybbb64b484ffe4742bef1f4149c56a9ff/stages/4' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
|
The (optional) position on which the new stage will be inserted on; Zero to insert at the very beginning of the flow; default at the the end of flow |
The response contains the created stage:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 247
{
"id" : "Deliveries/Deliverybbb64b484ffe4742bef1f4149c56a9ff/Stage505fe3be58864d78b34f5cd957bd4d9a",
"type" : "delivery.Stage",
"title" : "New stage",
"status" : "OPEN",
"items" : [ ],
"owner" : "Owner user",
"team" : "Owner team"
}
Get stages
To get a list of stages in a delivery pattern, send this request:
GET /api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response contains the list of stages:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1017
[ {
"id" : "Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/Stage5cf4d2d09bfa44c9b7175e5017be7e6a",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/Stagede8c36022e074dce883f00a8d9fdf14a",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/Stagea87a5a226ca549da93a17a4dc40441b7",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/Stage8e18edc2399740bd8f880d39bbd4a4ab",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ]
Update a stage
To update an existing stage in a delivery pattern, send this request:
PUT /api/v1/delivery-patterns/Deliveries/Delivery7364702e17974750984799a190c8bc55/Stage5da2155c7d914726a943a99d98fdc1d3
{
"id" : null,
"type" : "delivery.Stage",
"title" : "Updated stage title",
"status" : "OPEN",
"items" : [ ],
"owner" : "Updated owner",
"team" : "Updated team"
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7364702e17974750984799a190c8bc55/Stage5da2155c7d914726a943a99d98fdc1d3' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "delivery.Stage",
"title" : "Updated stage title",
"status" : "OPEN",
"items" : [ ],
"owner" : "Updated owner",
"team" : "Updated team"
}'
$ echo '{
"id" : null,
"type" : "delivery.Stage",
"title" : "Updated stage title",
"status" : "OPEN",
"items" : [ ],
"owner" : "Updated owner",
"team" : "Updated team"
}' | http PUT 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7364702e17974750984799a190c8bc55/Stage5da2155c7d914726a943a99d98fdc1d3' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
The response contains the updated stage:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 262
{
"id" : "Deliveries/Delivery7364702e17974750984799a190c8bc55/Stage5da2155c7d914726a943a99d98fdc1d3",
"type" : "delivery.Stage",
"title" : "Updated stage title",
"status" : "OPEN",
"items" : [ ],
"owner" : "Updated owner",
"team" : "Updated team"
}
Delete a stage
To delete an existing stage in a delivery pattern, send this request:
DELETE /api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
The response is empty with the status code 204 if the operation was successful.
Create a transition
To creaate a transition in a delivery pattern, send this request:
POST /api/v1/delivery-patterns/Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40/transitions
{
"id" : "219131118",
"type" : "delivery.Transition",
"title" : "New transition",
"stage" : "Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40",
"conditions" : [ ],
"automated" : false
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40/transitions' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "219131118",
"type" : "delivery.Transition",
"title" : "New transition",
"stage" : "Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40",
"conditions" : [ ],
"automated" : false
}'
$ echo '{
"id" : "219131118",
"type" : "delivery.Transition",
"title" : "New transition",
"stage" : "Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40",
"conditions" : [ ],
"automated" : false
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40/transitions' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
The response contains the updated transition:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 361
{
"id" : "Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40/Transition6799d7a839db40d38c36d7ab7d7a3ee6",
"type" : "delivery.Transition",
"title" : "New transition",
"stage" : "Deliveries/Delivery7abccdf8df8f4d979e76f380d9ed9944/Stagea141b24b3db743c5a7654f59473f1e40",
"conditions" : [ ],
"automated" : false
}
Update a transition
To update an existing transition in a delivery pattern, send this request:
PUT /api/v1/delivery-patterns/Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b
{
"id" : null,
"type" : "delivery.Transition",
"title" : "New transition title",
"stage" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "AND",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.ItemsCompletionCondition",
"satisfied" : false
} ]
}, {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.TimeCondition",
"satisfied" : false,
"startDateOffset" : 24
} ]
} ]
} ],
"automated" : true
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "delivery.Transition",
"title" : "New transition title",
"stage" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "AND",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.ItemsCompletionCondition",
"satisfied" : false
} ]
}, {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.TimeCondition",
"satisfied" : false,
"startDateOffset" : 24
} ]
} ]
} ],
"automated" : true
}'
$ echo '{
"id" : null,
"type" : "delivery.Transition",
"title" : "New transition title",
"stage" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "AND",
"conditions" : [ {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.ItemsCompletionCondition",
"satisfied" : false
} ]
}, {
"id" : null,
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : null,
"type" : "delivery.TimeCondition",
"satisfied" : false,
"startDateOffset" : 24
} ]
} ]
} ],
"automated" : true
}' | http PUT 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the transition |
The response contains the updated transition:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1901
{
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b",
"type" : "delivery.Transition",
"title" : "New transition title",
"stage" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181",
"conditions" : [ {
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b/Condition9460e4b30b29450bb6dd163a0a678373",
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "AND",
"conditions" : [ {
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b/Condition7dafd804826f4f248bcc968a98caf1e9",
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b/Conditionfac5c48a4746421099e0755ce7ed3c41",
"type" : "delivery.ItemsCompletionCondition",
"satisfied" : false
} ]
}, {
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b/Condition4361a8ba828d4382863a55286485eed6",
"type" : "delivery.ConditionGroup",
"satisfied" : false,
"operator" : "OR",
"conditions" : [ {
"id" : "Deliveries/Delivery7320bfaba0b343f3b8b35657d051c2b4/Stage3a08f0bed0874e07ae1fc7ac23213181/Transition4202e4b8413d471194c19520f4a0c46b/Conditiona8cf7d06eabe44e38c58ad7d24cdae40",
"type" : "delivery.TimeCondition",
"satisfied" : false,
"startDateOffset" : 24
} ]
} ]
} ],
"automated" : true
}
Delete a transition
To delete an existing transition in a delivery pattern, send this request:
DELETE /api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the transition |
The response is empty with the status code 204 if the operation was successful.
Create a tracked item
To create a tracked item in a delivery pattern, send this request:
POST /api/v1/delivery-patterns/Deliveries/Deliveryfdd3eb049f62479a8bf8e5d4fe9cab08/tracked-items
{
"id" : "704483675",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryfdd3eb049f62479a8bf8e5d4fe9cab08/tracked-items' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "704483675",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}'
$ echo '{
"id" : "704483675",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}' | http POST 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryfdd3eb049f62479a8bf8e5d4fe9cab08/tracked-items' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response contains the created item:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 314
{
"id" : "Deliveries/Deliveryfdd3eb049f62479a8bf8e5d4fe9cab08/TrackedItem4bef3546ce8348598ee97369bfa390f1",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:29.339+02:00",
"modifiedDate" : "2024-05-22T08:21:29.339+02:00"
}
Get tracked items
To get a list of tracked items in a delivery pattern, send this request:
GET /api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the pattern |
The response contains the list of tracked items:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 957
[ {
"id" : "Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/TrackedItemfa1f58d3f4e84a2a8b065dbe67184c9f",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:41.718+02:00",
"modifiedDate" : "2024-05-22T08:21:41.718+02:00"
}, {
"id" : "Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/TrackedItemf435cafc81e24a5f902c5d541b4d00e8",
"type" : "delivery.TrackedItem",
"title" : "Item A 1",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:41.899+02:00",
"modifiedDate" : "2024-05-22T08:21:41.899+02:00"
}, {
"id" : "Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/TrackedItem46a56e2c8fae406497f4d9ca64d0e2ea",
"type" : "delivery.TrackedItem",
"title" : "Item A 2",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:42.082+02:00",
"modifiedDate" : "2024-05-22T08:21:42.082+02:00"
} ]
Update a tracked item
To update an existing tracked item in a delivery pattern, send this request:
PUT /api/v1/delivery-patterns/Deliveries/Deliveryacccb56f86ca454db484bd70d5f2057c/TrackedItemd6f10a53cd0f4d7cb7ce58c0830e33de
{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:44.580+02:00",
"modifiedDate" : "2024-05-22T08:21:44.580+02:00"
}
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryacccb56f86ca454db484bd70d5f2057c/TrackedItemd6f10a53cd0f4d7cb7ce58c0830e33de' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:44.580+02:00",
"modifiedDate" : "2024-05-22T08:21:44.580+02:00"
}'
$ echo '{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:44.580+02:00",
"modifiedDate" : "2024-05-22T08:21:44.580+02:00"
}' | http PUT 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryacccb56f86ca454db484bd70d5f2057c/TrackedItemd6f10a53cd0f4d7cb7ce58c0830e33de' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response contains the updated tracked item:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 320
{
"id" : "Deliveries/Deliveryacccb56f86ca454db484bd70d5f2057c/TrackedItemd6f10a53cd0f4d7cb7ce58c0830e33de",
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:44.580+02:00",
"modifiedDate" : "2024-05-22T08:21:44.808+02:00"
}
Delete a tracked item
To delete an existing tracked item in a delivery pattern, send this request:
DELETE /api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Deliveries
Find a delivery by ID
To find a delivery by its ID, send this request:
GET /api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response contains the found delivery:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5192
{
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5",
"type" : "delivery.Delivery",
"title" : "Test delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:26.347+02:00",
"endDate" : "2024-05-24T02:21:26.347+02:00",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "Deliveries/Delivery23f6b1664391408982f504f29e5946f9",
"stages" : [ {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage5717c7ba4f174daa99d2d7c4ed47b6c1",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage5717c7ba4f174daa99d2d7c4ed47b6c1/StageTrackedIteme356773dcdc0461ebba75be76831ad70",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/TrackedItemdbb9758a7f6d4e99b15081d46cc14aca",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"transition" : {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage5717c7ba4f174daa99d2d7c4ed47b6c1/Transitionc5face250db64db19125f396421e397e",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Dev",
"stage" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage5717c7ba4f174daa99d2d7c4ed47b6c1",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stagedf1fa371c3cd4887a55849a298889e47",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stagedf1fa371c3cd4887a55849a298889e47/Transition95568372701b401f80d8470ec71e5fdb",
"type" : "delivery.Transition",
"title" : "Wait for Feature in QA",
"stage" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stagedf1fa371c3cd4887a55849a298889e47",
"conditions" : [ ],
"automated" : true
},
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage6f7773dd8d0349c3abbd7af8ac4c6e8c",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage6f7773dd8d0349c3abbd7af8ac4c6e8c/Transition1823794dc0424b68bb85e1a1f3aa08ee",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Pre-Prod",
"stage" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage6f7773dd8d0349c3abbd7af8ac4c6e8c",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/Stage553d77bb30ae414691cd9135005d33d2",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Delivery1b4af2939ae149478b193975c79a71e5/TrackedItemdbb9758a7f6d4e99b15081d46cc14aca",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:26.347+02:00",
"modifiedDate" : "2024-05-22T08:21:26.347+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : true,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Update a delivery
To update an existing delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e
{
"id" : null,
"type" : "delivery.Delivery",
"title" : "Updated delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:53.533+02:00",
"endDate" : "2024-05-22T20:21:53.533+02:00",
"plannedDuration" : 30,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "delivery.Delivery",
"title" : "Updated delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:53.533+02:00",
"endDate" : "2024-05-22T20:21:53.533+02:00",
"plannedDuration" : 30,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}'
$ echo '{
"id" : null,
"type" : "delivery.Delivery",
"title" : "Updated delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:53.533+02:00",
"endDate" : "2024-05-22T20:21:53.533+02:00",
"plannedDuration" : 30,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"autoComplete" : false
}' | http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response contains the updated delivery:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5195
{
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e",
"type" : "delivery.Delivery",
"title" : "Updated delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:53.533+02:00",
"endDate" : "2024-05-22T20:21:53.533+02:00",
"plannedDuration" : 12,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "Deliveries/Delivery9d8fc4afb89b40969d9f22b2a6a33046",
"stages" : [ {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage44ebd6e864594969a4975aaddccb868f",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage44ebd6e864594969a4975aaddccb868f/StageTrackedItem4fbc71c57ad94215a4c9dd132a539332",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/TrackedIteme5c150cc00e0406da7a2a6e668a5430f",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"transition" : {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage44ebd6e864594969a4975aaddccb868f/Transition7d8ee20521ca43238d8cf694c0ac006b",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Dev",
"stage" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage44ebd6e864594969a4975aaddccb868f",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stagebaf8329dac96403ba77e6dc42a1f47b1",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stagebaf8329dac96403ba77e6dc42a1f47b1/Transitiond756c0a8319545b3b585a6e5dfb6047a",
"type" : "delivery.Transition",
"title" : "Wait for Feature in QA",
"stage" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stagebaf8329dac96403ba77e6dc42a1f47b1",
"conditions" : [ ],
"automated" : true
},
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage3f8e2d99849a4c76bf509763ca30a2d7",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage3f8e2d99849a4c76bf509763ca30a2d7/Transitionb92bc290de734fcfb85aee7c598d5227",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Pre-Prod",
"stage" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage3f8e2d99849a4c76bf509763ca30a2d7",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/Stage0eb0d8d861e74b3eb922892381de25a4",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Deliverya942e0ce02cf4eb995a2e2dcb0138a3e/TrackedIteme5c150cc00e0406da7a2a6e668a5430f",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:53.522+02:00",
"modifiedDate" : "2024-05-22T08:21:53.522+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false,
"$metadata" : {
"details" : {
"pattern" : "Test pattern",
"folder" : "Folder 7",
"hasPatternViewAccess" : true,
"hasFolderViewAccess" : true
},
"security" : {
"permissions" : [ "release#edit_precondition", "release#edit", "template#edit", "release#edit_security", "group#view", "release#lock_task", "delivery_pattern#view", "template#create_release_other_folder", "group#edit", "template#lock_task", "folder#generate_configuration", "release#task_transition", "delivery_pattern#edit", "trigger#view_trigger", "release#edit_task_input_output_properties", "release#edit_task_tags", "folder#view_versions", "trigger#edit_trigger", "folder#apply_changes", "release#view", "folder#edit_notifications", "delivery#view", "release#edit_blackout", "release#edit_failure_handler", "template#edit_precondition", "folder#edit", "release#abort", "template#edit_failure_handler", "folder#edit_variables", "folder#edit_configuration", "release#advance_task_transition", "folder#edit_versions", "release#restart_phase", "folder#view", "release#edit_task_script", "release#edit_task_configuration_facet", "release#edit_task_flag", "release#edit_task_dates", "dashboard#view", "release#edit_task", "release#edit_task_attachments", "release#reassign_task", "delivery#edit", "template#edit_security", "template#create_release", "release#edit_task_description", "delivery#edit_tracked_item", "release#start", "template#view", "template#edit_triggers", "dashboard#edit", "folder#edit_security" ],
"teams" : [ "Template Owner", "Release Admin", "Folder Owner" ]
}
}
}
Delete a delivery
To delete an existing delivery, send this request:
DELETE /api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d' -i -X DELETE
$ http DELETE 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response is empty with the status code 204 if the operation was successful.
Search deliveries
To search deliveries, send this request:
POST /api/v1/deliveries/search?page=0&resultsPerPage=100&orderBy=CREATED_DATE
{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "",
"statuses" : [ "IN_PROGRESS", "COMPLETED" ]
}
$ curl 'http://localhost:5516/api/v1/deliveries/search?page=0&resultsPerPage=100&orderBy=CREATED_DATE' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "",
"statuses" : [ "IN_PROGRESS", "COMPLETED" ]
}'
$ echo '{
"title" : "Test",
"strictTitleMatch" : false,
"trackedItemTitle" : "",
"strictTrackedItemTitleMatch" : false,
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "",
"statuses" : [ "IN_PROGRESS", "COMPLETED" ]
}' | http POST 'http://localhost:5516/api/v1/deliveries/search?page=0&resultsPerPage=100&orderBy=CREATED_DATE' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Path | Type | Description |
---|---|---|
|
|
Case-insensitive matches the part of the delivery title |
|
|
Set to true to exact match the delivery title (case-insensitive) |
|
|
ID of the folder containing the deliveries |
|
|
ID of the delivery pattern the deliveries were created from |
|
|
Delivery statuses to filter by |
The response contains a list of the found deliveries:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 5139
[ {
"id" : "Deliveries/Delivery0392d3bbb7cb41cb8ba76dbd40ddab28",
"type" : "delivery.Delivery",
"title" : "Test delivery 2",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:33.044+02:00",
"endDate" : "2024-05-27T08:21:33.044+02:00",
"plannedDuration" : 120,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"stages" : [ {
"id" : "Deliveries/Delivery0392d3bbb7cb41cb8ba76dbd40ddab28/Stage4929f47dbbe446ff828f60e90a8d5f10",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery0392d3bbb7cb41cb8ba76dbd40ddab28/Stage4fde21c99fc44400ac80ee82a85d3760",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery0392d3bbb7cb41cb8ba76dbd40ddab28/Stage4b65fe4ea2614096bc5b78987d5c3d65",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery0392d3bbb7cb41cb8ba76dbd40ddab28/Stage9adbd5f4941546e09d7118f80f54a7dd",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ ],
"subscribers" : [ ],
"autoComplete" : false
}, {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b",
"type" : "delivery.Delivery",
"title" : "Test delivery",
"status" : "IN_PROGRESS",
"startDate" : "2024-05-22T08:21:33.023+02:00",
"endDate" : "2024-05-24T02:21:33.023+02:00",
"plannedDuration" : 42,
"releaseIds" : [ ],
"folderId" : "Applications/Folder01345a690c16b345168751d62934e912",
"originPatternId" : "Deliveries/Deliverya126987581774640afa1724dd6837b13",
"stages" : [ {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage3a19c5c0ecc84911831be90af73d6fb4",
"type" : "delivery.Stage",
"title" : "Feature in Dev",
"status" : "OPEN",
"items" : [ {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage3a19c5c0ecc84911831be90af73d6fb4/StageTrackedItemae5ee7cf6fce4dc8bfaebcf0d66bd1c8",
"type" : "delivery.StageTrackedItem",
"trackedItemId" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/TrackedItem4f01dbb9136e420a8b3274c987186217",
"status" : "NOT_READY",
"releaseIds" : [ ]
} ],
"transition" : {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage3a19c5c0ecc84911831be90af73d6fb4/Transitiondaf39de0955b4614965c0e6e58a54420",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Dev",
"stage" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage3a19c5c0ecc84911831be90af73d6fb4",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Dev",
"team" : "Team Dev"
}, {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage481763be0a4f448f9c6916d8bcca111b",
"type" : "delivery.Stage",
"title" : "Feature in QA",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage481763be0a4f448f9c6916d8bcca111b/Transition2fc74051b1df4968b343f713efbdf9a7",
"type" : "delivery.Transition",
"title" : "Wait for Feature in QA",
"stage" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage481763be0a4f448f9c6916d8bcca111b",
"conditions" : [ ],
"automated" : true
},
"owner" : "User QA",
"team" : "Team QA"
}, {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stagee7d303183a524f058232b8fdfc35fb94",
"type" : "delivery.Stage",
"title" : "Feature in Pre-Prod",
"status" : "OPEN",
"items" : [ ],
"transition" : {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stagee7d303183a524f058232b8fdfc35fb94/Transition6b03cc39325b43ae9fd0a75a045f5360",
"type" : "delivery.Transition",
"title" : "Wait for Feature in Pre-Prod",
"stage" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stagee7d303183a524f058232b8fdfc35fb94",
"conditions" : [ ],
"automated" : true
},
"owner" : "User Pre-Prod",
"team" : "Team Pre-Prod"
}, {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/Stage83a7eb5f5ae8417f86d6c9fb6f3a0a57",
"type" : "delivery.Stage",
"title" : "Feature in Prod",
"status" : "OPEN",
"items" : [ ],
"owner" : "User Prod",
"team" : "Team Prod"
} ],
"trackedItems" : [ {
"id" : "Deliveries/Delivery4968f57a7f88419e9292f236cde6255b/TrackedItem4f01dbb9136e420a8b3274c987186217",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:33.023+02:00",
"modifiedDate" : "2024-05-22T08:21:33.023+02:00"
} ],
"subscribers" : [ ],
"autoComplete" : false
} ]
Get releases associated with a delivery
To get all releases associated with a delivery, send this request:
GET /api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response contains a list of associated releases info:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 348
[ {
"id" : "Release4886e7e004e44853a08392035b99bc71",
"title" : "Release 1",
"status" : "in_progress",
"startDate" : null,
"endDate" : null,
"archived" : false
}, {
"id" : "Release58c7fe78b7564ebc8d401e76ac949ec2",
"title" : "Release 2",
"status" : "in_progress",
"startDate" : null,
"endDate" : null,
"archived" : false
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
ID of the release |
|
|
Title of the release |
|
|
Status of the release |
|
|
Start date of the release |
|
|
End date of the release |
|
|
Is release archived |
Create a tracked item
To create a tracked item in a delivery, send this request:
POST /api/v1/deliveries/Deliveries/Deliveryeb8ef211d45149d2aac1e76f65067328/tracked-items
{
"id" : "1712656992",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryeb8ef211d45149d2aac1e76f65067328/tracked-items' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : "1712656992",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}'
$ echo '{
"id" : "1712656992",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false
}' | http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryeb8ef211d45149d2aac1e76f65067328/tracked-items' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response contains the created item:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 314
{
"id" : "Deliveries/Deliveryeb8ef211d45149d2aac1e76f65067328/TrackedItem3748aa6f85a84a5195321d1c04380cf5",
"type" : "delivery.TrackedItem",
"title" : "Item A",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:23.952+02:00",
"modifiedDate" : "2024-05-22T08:21:23.952+02:00"
}
Get tracked items
To get a list of tracked items in a delivery, send this request:
GET /api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The id of the delivery |
The response contains the list of tracked items:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 957
[ {
"id" : "Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/TrackedItem4237acd240394683b8cf348e1bb25515",
"type" : "delivery.TrackedItem",
"title" : "Test item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:45.794+02:00",
"modifiedDate" : "2024-05-22T08:21:45.794+02:00"
}, {
"id" : "Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/TrackedItem9940d54cabd440faace2ff273c017b3c",
"type" : "delivery.TrackedItem",
"title" : "Item A 1",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:45.939+02:00",
"modifiedDate" : "2024-05-22T08:21:45.939+02:00"
}, {
"id" : "Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/TrackedItem1b5196ce21004ec3b52ef79ee5e3f36b",
"type" : "delivery.TrackedItem",
"title" : "Item A 2",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:46.156+02:00",
"modifiedDate" : "2024-05-22T08:21:46.156+02:00"
} ]
Update a tracked item
To update an existing tracked item in a delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Delivery5ff5a66d1861457ebbff8042c1e8de62/TrackedItem5217810880964804b9d626d220e95375
{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:47.551+02:00",
"modifiedDate" : "2024-05-22T08:21:47.551+02:00"
}
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery5ff5a66d1861457ebbff8042c1e8de62/TrackedItem5217810880964804b9d626d220e95375' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:47.551+02:00",
"modifiedDate" : "2024-05-22T08:21:47.551+02:00"
}'
$ echo '{
"id" : null,
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:47.551+02:00",
"modifiedDate" : "2024-05-22T08:21:47.551+02:00"
}' | http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery5ff5a66d1861457ebbff8042c1e8de62/TrackedItem5217810880964804b9d626d220e95375' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response contains the updated tracked item:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 320
{
"id" : "Deliveries/Delivery5ff5a66d1861457ebbff8042c1e8de62/TrackedItem5217810880964804b9d626d220e95375",
"type" : "delivery.TrackedItem",
"title" : "Updated item",
"releaseIds" : [ ],
"descoped" : false,
"createdDate" : "2024-05-22T08:21:47.551+02:00",
"modifiedDate" : "2024-05-22T08:21:47.767+02:00"
}
Delete a tracked item
To delete an existing tracked item in a delivery, send this request:
DELETE /api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564' -i -X DELETE \
-H 'Accept: application/json'
$ http DELETE 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Descope a tracked item
To descope a tracked item in a delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope' -i -X PUT \
-H 'Accept: application/json'
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Rescope a tracked item
To rescope a tracked item in a delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope' -i -X PUT \
-H 'Accept: application/json'
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Complete a tracked item
To complete a tracked item in a stage in a delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete' -i -X PUT \
-H 'Accept: application/json'
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
|
The id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Skip a tracked item
To skip a tracked item in a stage in a delivery, send this request:
PUT /api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip' -i -X PUT \
-H 'Accept: application/json'
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
|
The id of the tracked item |
The response is empty with the status code 204 if the operation was successful.
Complete a stage
To complete a stage in a delivery, send this request:
POST /api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
The response is empty with the status code 204 if the operation was successful.
Reopen a stage
To reopen a stage in a delivery, send this request:
POST /api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen' -i -X POST \
-H 'Accept: application/json'
$ http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the stage |
The response is empty with the status code 204 if the operation was successful.
Complete a transition
To complete a transition in a delivery, send this request:
POST /api/v1/deliveries/Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/Stage304aabf988f140199a91c4a9470856c9/Transition656b587393af4e6ca6726c841f2c54e8/complete
{
"transitionItems" : [ "Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/TrackedIteme842796bdb3e448dba0b3c22b6492054" ],
"closeStages" : true
}
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/Stage304aabf988f140199a91c4a9470856c9/Transition656b587393af4e6ca6726c841f2c54e8/complete' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"transitionItems" : [ "Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/TrackedIteme842796bdb3e448dba0b3c22b6492054" ],
"closeStages" : true
}'
$ echo '{
"transitionItems" : [ "Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/TrackedIteme842796bdb3e448dba0b3c22b6492054" ],
"closeStages" : true
}' | http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/Stage304aabf988f140199a91c4a9470856c9/Transition656b587393af4e6ca6726c841f2c54e8/complete' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
The full id of the transition |
The response is empty with the status code 204 if the operation was successful.
Activity Logs
Release Activity Logs
To get activity logs for release or template, send this request:
GET /api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Folder1/Release1 |
The response contains a list of the activity log entries:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 398
[ {
"id" : "9",
"type" : "xlrelease.ActivityLogEntry",
"username" : "admin",
"activityType" : "TASK_STARTED",
"message" : "Started Task 'Configure users'",
"eventTime" : "2024-05-22T08:21:18.371+02:00",
"targetType" : "xlrelease.Task",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726"
} ]
All the fields in the response and their description:
Path | Type | Description |
---|---|---|
|
|
This field contains ID of activity log. |
|
|
This field represents type of 'xlrelease.ActivityLogEntry'. |
|
|
The username. Blank if event is generated by SYSTEM. |
|
|
The type of activity. |
|
|
Environment description |
|
|
The time of activity. |
|
|
This field represents type of target. |
|
|
This field contains ID of target. |
Delivery Activity Logs
To get activity logs for delivery or pattern, send this request:
GET /api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81
$ curl 'http://localhost:5516/api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the delivery; for example, Deliveries/Delivery1 |
The response contains a list of the activity log entries:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 328
[ {
"id" : "28",
"type" : "xlrelease.ActivityLogEntry",
"username" : "admin",
"activityType" : "DELIVERY_CREATED",
"message" : "Created delivery 'Delivery1'",
"eventTime" : "2024-05-22T08:21:26.973+02:00",
"targetType" : "delivery.Delivery",
"targetId" : "Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81"
} ]
Trigger Activity Logs
To get activity logs for trigger, send this request:
GET /api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f
$ curl 'http://localhost:5516/api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the trigger; for example, Applications/Trigger1 |
The response contains a list of the activity log entries:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 341
[ {
"id" : "22",
"type" : "xlrelease.ActivityLogEntry",
"username" : "admin",
"activityType" : "TRIGGER_ADDED",
"message" : "Added release trigger 'Simple Trigger'",
"eventTime" : "2024-05-22T08:21:23.088+02:00",
"targetType" : "unit.SimpleTriggerTest",
"targetId" : "Applications/Triggera141c0a6e641454084ae761194ab6c3f"
} ]
Report
Release Report
To download a release report, send this request:
GET /api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/octet-stream'
$ http GET 'http://localhost:5516/api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/octet-stream'
Using the following parameter:
Parameter | Description |
---|---|
|
Synthetic type of the release report; for example, xlrelease.ReleaseAuditExcelReport |
|
Full identifier of the release; for example, Applications/Folder1/Release1 |
You will receive the release report file in the response.
Task Reporting Records
Type of records
Record | Digital.ai Release type |
---|---|
Build |
udm.BuildRecord |
Code Compliance |
udm.CodeComplianceRecord |
Deployment |
udm.DeploymentRecord |
ITSM |
udm.ItsmRecord |
Plan |
udm.PlanRecord |
Fields in udm.BuildRecord
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'udm.BuildRecord'. |
|
|
The ID of the CI that the facet is applied to. |
|
|
Variable Mapping |
|
|
Server base URL used to fetch data. |
|
|
Username used to authenticate to the server when fetching data. |
|
|
Timestamp of when this record was created. |
|
|
The project name. |
|
|
The ID of the build. |
|
|
Result of the build. |
|
|
Start date of the build. |
|
|
End date of the build. |
|
|
Duration of the build. |
|
|
Link to the job build. |
Fields in udm.CodeComplianceRecord
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'udm.CodeComplianceRecord'. |
|
|
The ID of the CI that the facet is applied to. |
|
|
Variable Mapping |
|
|
Server base URL used to fetch data. |
|
|
Username used to authenticate to the server when fetching data. |
|
|
Timestamp of when this record was created. |
|
|
The project name. |
|
|
URL for the project. |
|
|
Date of the analysis. |
|
|
Result of the analysis. |
|
|
The compliance data. |
Fields in udm.DeploymentRecord
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'udm.DeploymentRecord'. |
|
|
The ID of the CI that the facet is applied to. |
|
|
Variable Mapping |
|
|
Server base URL used to fetch data. |
|
|
Username used to authenticate to the server when fetching data. |
|
|
Timestamp of when this record was created. |
|
|
The deployment. |
|
|
The URL of the deployment. |
|
|
The name of the application whose version is being deployed. |
|
|
The version of the application. |
|
|
The name of the environment where this task deploys to. |
|
|
The status of the deployment. |
Fields in udm.ItsmRecord
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'udm.ItsmRecord'. |
|
|
The ID of the CI that the facet is applied to. |
|
|
Variable Mapping |
|
|
Server base URL used to fetch data. |
|
|
Username used to authenticate to the server when fetching data. |
|
|
Timestamp of when this record was created. |
|
|
Unique identifier in ITSM. |
|
|
Link to the record in ITSM. |
|
|
Title of the record in ITSM. |
|
|
Status of the record. |
|
|
Priority of the record. |
|
|
Record created by. |
Fields in udm.PlanRecord
Path | Type | Description |
---|---|---|
|
|
This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'. |
|
|
This field represents type of 'udm.PlanRecord'. |
|
|
The ID of the CI that the facet is applied to. |
|
|
Variable Mapping |
|
|
Server base URL used to fetch data. |
|
|
Username used to authenticate to the server when fetching data. |
|
|
Timestamp of when this record was created. |
|
|
Ticket ID. |
|
|
Issue title. |
|
|
Ticket type. |
|
|
Status of the ticket. |
|
|
Date and time of last update. |
|
|
Person who performed the last update. |
|
|
Link to the ticket. |
List all records
Get all records for a release
To get task reporting records for a release, send this request:
GET /api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21
$ curl 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the release; for example, Applications/Folder1/Release1 |
The response contains a list of the task reporting records:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 2986
[ {
"id" : "Facetcd05cf1aa36242338d9b6c8b296a1c73",
"type" : "udm.PlanRecord",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task169e52908657406c9b5ae07a496c697c",
"variableMapping" : { },
"serverUrl" : "http://example.com",
"serverUser" : "admin",
"creationDate" : "2024-05-22T08:21:58.825+02:00",
"ticket" : "REL-6437",
"title" : "Some issue",
"ticketType" : "BUG",
"status" : "Paused",
"updatedDate" : "2024-05-22T08:21:58.720+02:00",
"updatedBy" : "admin",
"ticket_url" : "http://example.com/browse/REL-6437"
}, {
"id" : "Facet31de114c0ed640378281f01cd66f67ba",
"type" : "udm.DeploymentRecord",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task31a0974f90b8450c98dbeef993f53667",
"variableMapping" : { },
"serverUrl" : "http://example.com",
"serverUser" : "admin",
"creationDate" : "2024-05-22T08:21:58.794+02:00",
"deploymentTask" : "PR-1234",
"deploymentTask_url" : "http://example.com",
"applicationName" : "XL-Jetpack",
"version" : "1.0",
"environmentName" : "34521",
"status" : "IN_PROGRESS"
}, {
"id" : "Facet7d2011fc17fc4fb6adcb1f654034d2c2",
"type" : "udm.ItsmRecord",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Taskcecbc48333e04276b212a4091adf3928",
"variableMapping" : { },
"serverUrl" : "example.com",
"serverUser" : "nobody",
"creationDate" : "2024-05-22T08:21:58.809+02:00",
"record" : "CN-123",
"record_url" : "https://example.com/changes/CN-123",
"title" : "Move definition of ITSM Facet from synthetic.xml to proper Java class with getters and setters",
"status" : "In progress",
"priority" : "Major",
"createdBy" : "Toadsworth"
}, {
"id" : "Facet139cfad89f504c6e9be6c9269f8418c0",
"type" : "udm.BuildRecord",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
"variableMapping" : { },
"serverUrl" : "http://example.com",
"serverUser" : "admin",
"creationDate" : "2024-05-22T08:21:58.742+02:00",
"project" : "XL-RELEASE",
"build" : "PR-1234",
"outcome" : "SUCCESS",
"startDate" : "2024-05-22T08:21:58.720+02:00",
"endDate" : "2024-05-22T08:21:58.720+02:00",
"duration" : "34521",
"build_url" : "http://example.com"
}, {
"id" : "Facete1421364b269446093345caf3bba82d2",
"type" : "udm.CodeComplianceRecord",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task5be4358d7e7a4282b79e6cf474375978",
"variableMapping" : { },
"serverUrl" : "https://example.com",
"serverUser" : "nobody",
"creationDate" : "2024-05-22T08:21:58.764+02:00",
"project" : "Project",
"project_url" : "https://example.com/project1",
"analysisDate" : "2024-05-22T08:21:58.720+02:00",
"outcome" : "Success",
"complianceData" : "report"
} ]
Get all records for a task
To get task reporting records for a task, send this request:
GET /api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
$ curl 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X GET \
-H 'Accept: application/json'
$ http GET 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
'Accept:application/json'
Using the following path parameters:
Parameter | Description |
---|---|
|
Full identifier of the task; for example, Applications/Folder1/Release1/Phase1/Task1 |
The response contains a list of the task reporting records.
Search records
To search task reporting records, send this request:
POST /api/v1/reports/records/search
{
"parentId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task31a0974f90b8450c98dbeef993f53667",
"types" : [ ]
}
$ curl 'http://localhost:5516/api/v1/reports/records/search' -i -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"parentId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task31a0974f90b8450c98dbeef993f53667",
"types" : [ ]
}'
$ echo '{
"parentId" : "Applications/Release162151faba694d03aa3065665cf26f21",
"targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task31a0974f90b8450c98dbeef993f53667",
"types" : [ ]
}' | http POST 'http://localhost:5516/api/v1/reports/records/search' \
'Content-Type:application/json' \
'Accept:application/json'
Using the following parameters:
Path | Type | Description |
---|---|---|
|
|
Full identifier of the release; for example, Applications/Folder1/Release1 (Optional if targetId specified) |
|
|
Full identifier of the task; for example, Applications/Folder1/Release1/Phase1/Task1 (Optional if parentId specified) |
|
|
The (Optional) Task reporting record types; for example, 'udm.DeploymentRecord' |
The response contains a list of the task reporting records for matching search criteria.
Plugin Manager
API for managing plugins in Digital.ai Release. User must have ADMIN permission level in order to interact with the plugin manager API.
With the API you can list installed plugins and install or upgrade integration plugins from the official Digital.ai plugin repository or custom built plugins from a local file.
This API is shared with Digital.ai Deploy.
List
Lists the plugins that are currently active in the system.
GET /api/v1/plugin-manager/list
$ curl 'http://localhost:5516/api/v1/plugin-manager/list' -i -X GET
$ http GET 'http://localhost:5516/api/v1/plugin-manager/list'
A response :
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 990
[ {
"hasLogo" : true,
"metadata" : {
"author" : "Digital.ai",
"categories" : [ "Repository Management" ],
"description" : "Test plugin description.",
"features" : [ "f1", "f2" ],
"links" : [ {
"name" : "Website",
"url" : "https://www.example.com/"
}, {
"name" : "Documentation",
"url" : "https://docs.xebialabs.com/release/how-to/nexus-trigger.html"
} ],
"maturity" : "Mature",
"name" : "Test plugin",
"requirements" : {
"product" : "XL Release",
"versions" : [ "== 23.2.0" ]
},
"screenshots" : [ {
"name" : "Set up a Nexus server",
"url" : "https://docs.xebialabs.com/release/images/nexus-configuration-details.png"
} ],
"supportedBy" : "Digital.ai"
},
"plugin" : {
"artifactId" : "test-plugin",
"groupId" : "com.xebialabs.xlrelease.plugins"
},
"status" : "READY_FOR_INSTALL",
"versions" : [ {
"repository" : "xlr-official",
"version" : "10.1.0"
} ]
} ]
Path | Type | Description |
---|---|---|
|
|
Whether if plugin has logo |
|
|
Status of plugin in system. Possible values: AVAILABLE, READY_FOR_INSTALL, INSTALLED |
|
|
Author of the plugin |
|
|
Category of the plugin |
|
|
Plugin description |
|
|
List of plugin features |
|
|
Plugin maturity. Possible values: |
|
|
Official plugin name |
|
|
Screenshots of the plugin |
|
|
Plugin created and supported by |
|
|
Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name |
|
|
Link URL |
|
|
Plugin can have screenshots associated to them. This field contains the screenshots name |
|
|
Screenshot URL |
|
|
Digital.Ai product to which the plugin belongs |
|
|
Digital.Ai product version which is required for plugin |
|
|
The name of artifact on the Nexus repository |
|
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__) |
|
|
Plugin repository identifier |
|
|
Plugin version |
List repositories
Lists all Nexus repositories that are configured in the system. A repository contains the plugin artifacts that can be installed by the Plugin Manager.
To interact with a repository, use the response field config.repository-id
as the repository identifier in subsequent requests.
The default repository id is xlr-official
GET /api/v1/plugin-manager/repositories
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories' -i -X GET
$ http GET 'http://localhost:5516/api/v1/plugin-manager/repositories'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 553
[ {
"config" : {
"nexus-group-id" : "com.xebialabs.xlrelease.plugins",
"nexus-metadata-artifact" : {
"artifact-id" : "xlr-plugins-metadata",
"group-id" : "com.xebialabs.xlrelease.plugins.metadata"
},
"nexus-packaging-type" : "jar",
"repository-id" : "official-plugins",
"repository-type" : "nexus-by-group-id",
"server" : {
"server-type" : "nexus",
"url" : "http://localhost:35241/nexus"
}
},
"lastUpdated" : 1716358899959,
"repositoryId" : "xlr-official",
"repositoryType" : "nexus"
} ]
Path | Type | Description |
---|---|---|
|
|
Timestamp of the latest download of this repository metadata |
|
|
Repository identifier |
|
|
Type of repository used by the plugin manager. Possible values: 'nexus', 'unknown' |
|
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__) |
|
|
XLR can only use repositories that have 'jar' packaging, so this will always have 'jar' value |
|
|
Repository identifier |
|
|
XLR only supports fetching repository metadata from Nexus by providing groupId and artifactId, so this field will always have 'nexus-by-group-id' value |
|
|
The name of artifact on the Nexus repository |
|
|
Group id of the metadata file |
|
|
Type of repository server |
|
|
Url of repository server |
List plugins from repository
Lists all available plugins for the provided repositoryId
. The result contains the metadata and installation status per plugin.
Digital.ai Release caches the metadata from the repository. To refresh the list of plugins and their metadata, call (POST /plugin-manager/repositories/{repository-id}/update
).
GET /api/v1/plugin-manager/repositories/xlr-official/list
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/list' -i -X GET
$ http GET 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/list'
Parameter | Description |
---|---|
|
The Nexus repository ID on which plugin is accessible (in case of 3rd party plugins it should be __local__); for example, xlr-official |
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 1726
[ {
"hasLogo" : true,
"metadata" : {
"author" : "Digital.ai",
"categories" : [ "Repository Management" ],
"description" : "Test plugin description.",
"features" : [ "f1", "f2" ],
"links" : [ {
"name" : "Website",
"url" : "https://www.example.com/"
}, {
"name" : "Documentation",
"url" : "https://docs.xebialabs.com/release/how-to/nexus-trigger.html"
} ],
"maturity" : "Mature",
"name" : "Test plugin",
"requirements" : {
"product" : "XL Release",
"versions" : [ "== 23.2.0" ]
},
"screenshots" : [ {
"name" : "Set up a Nexus server",
"url" : "https://docs.xebialabs.com/release/images/nexus-configuration-details.png"
} ],
"supportedBy" : "Digital.ai"
},
"plugin" : {
"artifactId" : "test-plugin",
"groupId" : "com.xebialabs.xlrelease.plugins"
},
"versions" : [ {
"repository" : "xlr-official",
"version" : "10.1.0"
} ]
}, {
"hasLogo" : false,
"metadata" : {
"author" : "Digital.ai",
"categories" : [ "Provisioning", "Config Management" ],
"description" : "Description.",
"features" : [ ],
"links" : [ {
"name" : "Documentation",
"url" : "https://docs.xebialabs.com/xl-release/how-to/using-the-remote-completion-plugin.html"
} ],
"maturity" : "Mature",
"name" : "another test plugin",
"requirements" : {
"product" : "XL Release",
"versions" : [ "== 23.2.0" ]
},
"screenshots" : [ ],
"supportedBy" : "Digital.ai"
},
"plugin" : {
"artifactId" : "another-test-plugin",
"groupId" : "com.xebialabs.xlrelease.plugins"
},
"versions" : [ {
"repository" : "xlr-official",
"version" : "10.1.0"
} ]
} ]
Path | Type | Description |
---|---|---|
|
|
Whether if plugin has logo |
|
|
Author of the plugin |
|
|
Category of the plugin |
|
|
Plugin description |
|
|
List of plugin features |
|
|
Plugin maturity. Possible values: |
|
|
Official plugin name |
|
|
Screenshots of the plugin |
|
|
Plugin created and supported by |
|
|
Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name |
|
|
Link URL |
|
|
Plugin can have screenshots associated to them. This field contains the screenshots name |
|
|
Screenshot URL |
|
|
Digital.Ai product to which the plugin belongs |
|
|
Digital.Ai product version which is required for plugin |
|
|
The name of artifact on the Nexus repository |
|
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__) |
|
|
Plugin repository identifier |
|
|
Plugin version |
Install from repository
Downloads a plugin from a repository and installs it into Digital.ai Release.
The plugin will be first in READY_FOR_INSTALL
status, and a system restart is needed for the installation to be completed.
While the plugin is in READY_FOR_INSTALL
it can still be deleted. Once the plugin is active, deletion is not permitted.
POST /api/v1/plugin-manager/repositories/xlr-official/install/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/install/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0' -i -X POST \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1'
$ http POST 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/install/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 65
{
"message" : "Installation of another-test-plugin succeeded"
}
Path | Type | Description |
---|---|---|
|
|
Human readable description of what happened |
Update from repository
The endpoint can be used to update the plugin with a newer version. All that’s needed is to pass the repositoryId, groupId and artifactId. The version that the plugin will be updated to is the one that the product supports. This version can not be altered via API.
POST /api/v1/plugin-manager/repositories/xlr-official/update/com.xebialabs.xlrelease.plugins/another-test-plugin
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/update/com.xebialabs.xlrelease.plugins/another-test-plugin' -i -X POST \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1'
$ http POST 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/update/com.xebialabs.xlrelease.plugins/another-test-plugin' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 94
{
"message" : "Installed plugin already at highest version. Update will not be performed."
}
Path | Type | Description |
---|---|---|
|
|
Human readable description of what happened |
Install local plugin
Installs a plugin by uploading the plugin binary.
The plugin will be first in READY_FOR_INSTALL
status, and a system restart is needed for the installation to be completed.
While the plugin is in READY_FOR_INSTALL
it can still be deleted. Once the plugin is active, deletion is not permitted.
This endpoint can’t be used for updating the plugin, please use update endpoint for that.
Parameter | Description |
---|---|
|
Plugin filename; for example, xlr-git-plugin-9.2.0.jar |
POST /api/v1/plugin-manager/install?pluginId=test-plugin-name.jar
--boundary
Content-Disposition: form-data; name="file"; filename="test-plugin-name.jar"
Content-Type: multipart/form-data
bytes
--boundary--
$ curl 'http://localhost:5516/api/v1/plugin-manager/install?pluginId=test-plugin-name.jar' -i -X POST \
-H 'Content-Type: multipart/form-data; boundary=boundary' \
-H 'Accept: application/json' \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1' \
-d '--boundary
Content-Disposition: form-data; name="file"; filename="test-plugin-name.jar"
Content-Type: multipart/form-data
bytes
--boundary--'
$ echo '--boundary
Content-Disposition: form-data; name="file"; filename="test-plugin-name.jar"
Content-Type: multipart/form-data
bytes
--boundary--' | http POST 'http://localhost:5516/api/v1/plugin-manager/install?pluginId=test-plugin-name.jar' \
'Content-Type:multipart/form-data; boundary=boundary' \
'Accept:application/json' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 62
{
"message" : "Installation of test-plugin-name succeeded"
}
Path | Type | Description |
---|---|---|
|
|
Human readable description of what happened |
Update local plugin
The plugin can be updated by uploading a new file. There are no restrictions with regard to versions. This means this endpoint can be used for plugin upgrades and downgrades.
Parameter | Description |
---|---|
|
Plugin name, e.g. xlr-git-plugin |
|
Plugin filename, e.g. xlr-git-plugin-9.2.0.jar |
POST /api/v1/plugin-manager/update?existingPluginName=another-test-plugin&newPluginId=another-test-plugin.jar
--boundary
Content-Disposition: form-data; name="file"; filename="another-test-plugin.jar"
Content-Type: multipart/form-data
bytes
--boundary--
$ curl 'http://localhost:5516/api/v1/plugin-manager/update?existingPluginName=another-test-plugin&newPluginId=another-test-plugin.jar' -i -X POST \
-H 'Content-Type: multipart/form-data; boundary=boundary' \
-H 'Accept: application/json' \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1' \
-d '--boundary
Content-Disposition: form-data; name="file"; filename="another-test-plugin.jar"
Content-Type: multipart/form-data
bytes
--boundary--'
$ echo '--boundary
Content-Disposition: form-data; name="file"; filename="another-test-plugin.jar"
Content-Type: multipart/form-data
bytes
--boundary--' | http POST 'http://localhost:5516/api/v1/plugin-manager/update?existingPluginName=another-test-plugin&newPluginId=another-test-plugin.jar' \
'Content-Type:multipart/form-data; boundary=boundary' \
'Accept:application/json' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 66
{
"message" : "Update of plugin another-test-plugin succeeded"
}
Path | Type | Description |
---|---|---|
|
|
Human readable description of what happened |
Uninstall
Cancels pending installation of a plugin. Plugin installation requires a restart of the system to be completed.
The uninstall API call can be made on plugins in the READY_FOR_INSTALL
status (which is the state of plugin after
the install API call but before system restart).
Note: once a plugin is in INSTALLED state it can not be deleted anymore.
DELETE /api/v1/plugin-manager/delete/xlr-official/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0
$ curl 'http://localhost:5516/api/v1/plugin-manager/delete/xlr-official/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0' -i -X DELETE \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1'
$ http DELETE 'http://localhost:5516/api/v1/plugin-manager/delete/xlr-official/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
Parameter | Description |
---|---|
|
The Nexus repository ID on which plugin is accessible (in case of 3rd party plugins it should be __local__); for example, xlr-official |
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__); for example, com.xebialabs.xlrelease.plugins |
|
The name of artifact on the Nexus repository; for example, xlr-plugin |
|
The version of the artifact for which installation will be cancelled; for example, 10.1.0 |
A response:
HTTP/1.1 200 OK
Content-Language: en
Update repository:
Updates cached list of available official plugins in the system for a given repository by downloading the metadata from the Nexus repository.
Sometimes plugins are updated and released to Nexus so it is good to periodically do this API call in order to update the cached list of plugins in the system.
POST /api/v1/plugin-manager/repositories/xlr-official/update
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/update' -i -X POST \
-H 'Cookie: XSRF-TOKEN=1' \
-H 'X-XSRF-TOKEN: 1'
$ http POST 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/update' \
'Cookie:XSRF-TOKEN=1' \
'X-XSRF-TOKEN:1'
A response:
HTTP/1.1 200 OK
Content-Language: en
Content-Type: application/json
Content-Length: 51
{
"lastDownloaded" : "05-22-2024 08:21:40 CEST"
}
Path | Type | Description |
---|---|---|
|
|
Timestamp of the last metadata download from Nexus. Not to be confused with the timestamp the metadata was last updated on Nexus. |
Get logo
Gets the plugin logo.
GET /api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin' -i -X GET
$ http GET 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin'
Parameter | Description |
---|---|
|
The Nexus repository ID on which plugin is accessible (in case of 3rd party plugins it should be __local__); for example, xlr-official |
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__); for example, com.xebialabs.xlrelease.plugins |
|
The name of artifact on the Nexus repository; for example, xlr-plugin |
A response is the plugin logo.
Search
The search is performed amongst all available plugins regardless of their installation status. It’s performed against the plugin id, which is a string in the following format:
repository-id:groupId:artifactId-version.extension
For example, suppose the following plugins are in Digital.ai Release:
-
xlr-official:com.xebialabs.xlrelease.plugins:xlr-ansible-plugin-10.3.0.jar
-
xlr-official:com.xebialabs.xlrelease.plugins:xlr-blackduck-plugin-10.3.0.jar
-
local:local:my-local-plugin.jar
Search criteria | Results |
---|---|
|
1, 2 |
|
1 |
|
1, 2 |
|
1, 2, 3 |
|
1, 2 |
GET /api/v1/plugin-manager/search/test
$ curl 'http://localhost:5516/api/v1/plugin-manager/search/test' -i -X GET
$ http GET 'http://localhost:5516/api/v1/plugin-manager/search/test'
Parameter | Description |
---|---|
|
Query string |
Path | Type | Description |
---|---|---|
|
|
Whether if plugin has logo |
|
|
Author of the plugin |
|
|
Category of the plugin |
|
|
Plugin description |
|
|
List of plugin features |
|
|
Plugin maturity. Possible values: |
|
|
Official plugin name |
|
|
Screenshots of the plugin |
|
|
Plugin created and supported by |
|
|
Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name |
|
|
Link URL |
|
|
Plugin can have screenshots associated to them. This field contains the screenshots name |
|
|
Screenshot URL |
|
|
Digital.Ai product to which the plugin belongs |
|
|
Digital.Ai product version which is required for plugin |
|
|
The name of artifact on the Nexus repository |
|
|
The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__) |
|
|
Plugin repository identifier |
|
|
Plugin version |