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 a JSON object containing incorrect parameters or values will return a Bad Request response:

Can't parse the following as a JSON object:
[{}]
401

Sending incorrect user/password in the Authorization header will return an Unauthorized 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, a Conflict 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:

HTTP Request
GET /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/json'

Using the following parameters

  • for template:

Table 1. /api/v1/templates/{templateId}
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

  • for release:

Table 2. /api/v1/releases/{releaseId}
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

Parameter Description

roleIds

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

Total risk score

Find archived release by ID

To find an archived release using a specific ID, send this request:

HTTP Request
GET /api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/archived/Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/json'

Using the following parameters:

Table 3. /api/v1/releases/archived/{releaseId}
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

Parameter Description

roleIds

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:

HTTP Request
GET /api/v1/releases/byTitle?releaseTitle=Find%20me
Curl
$ curl 'http://localhost:5516/api/v1/releases/byTitle?releaseTitle=Find%20me' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/byTitle?releaseTitle=Find%20me' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

releaseTitle

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

page

The (optional) page of results to return; defaults at 0

resultsPerPage

The (optional) the number of results per page; defaults at 100

pageIsOffset

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

title

String

Case-insensitive matches the part of the release title

tags

String

Matches the releases containing all of the specified tags

timeFrame

String

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

from

Long

Matches the releases with end date after or equal to this date

to

Long

Matches the releases with start date before this date

active

Boolean

Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status

planned

Boolean

Matches the releases with the PLANNED status

inProgress

Boolean

Matches the releases with the IN_PROGRESS status

paused

Boolean

Matches the releases with the PAUSED status

failing

Boolean

Matches the releases with the FAILING status

failed

Boolean

Matches the releases with the FAILED status

inactive

Boolean

Matches the releases with the COMPLETED or ABORTED status

completed

Boolean

Matches the releases with the COMPLETED status

aborted

Boolean

Matches the releases with the ABORTED status

onlyMine

Boolean

Matches the releases with me as the owner

onlyFlagged

Boolean

Matches the releases which need attention or are at risk

onlyArchived

Boolean

Matches the releases which have been archived

parentId

String

Matches the releases stored under this folder

orderBy

String

The order of the returning set: risk, start_date, end_date, title (only available for templates)

orderDirection

String

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

page

The (optional) page of results to return from the active database; defaults at 0

resultsPerPage

The (optional) the number of results per page; from the active database; defaults at 100

archivePage

The (optional) page of results to return from the archive database; defaults to page

archiveResultsPerPage

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

title

String

Case-insensitive matches the part of the release title

tags

String

Matches the releases containing all of the specified tags

timeFrame

String

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

from

Long

Matches the releases with end date after or equal to this date

to

Long

Matches the releases with start date before this date

active

Boolean

Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status

planned

Boolean

Matches the releases with the PLANNED status

inProgress

Boolean

Matches the releases with the IN_PROGRESS status

paused

Boolean

Matches the releases with the PAUSED status

failing

Boolean

Matches the releases with the FAILING status

failed

Boolean

Matches the releases with the FAILED status

inactive

Boolean

Matches the releases with the COMPLETED or ABORTED status

completed

Boolean

Matches the releases with the COMPLETED status

aborted

Boolean

Matches the releases with the ABORTED status

onlyMine

Boolean

Matches the releases with me as the owner

onlyFlagged

Boolean

Matches the releases which need attention or are at risk

onlyArchived

Boolean

Matches the releases which have been archived

parentId

String

Matches the releases stored under this folder

orderBy

String

The order of the returning set: risk, start_date, end_date, title (only available for templates)

orderDirection

String

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

title

String

Case-insensitive matches the part of the release title

tags

String

Matches the releases containing all of the specified tags

timeFrame

String

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

from

Long

Matches the releases with end date after or equal to this date

to

Long

Matches the releases with start date before this date

active

Boolean

Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status

planned

Boolean

Matches the releases with the PLANNED status

inProgress

Boolean

Matches the releases with the IN_PROGRESS status

paused

Boolean

Matches the releases with the PAUSED status

failing

Boolean

Matches the releases with the FAILING status

failed

Boolean

Matches the releases with the FAILED status

inactive

Boolean

Matches the releases with the COMPLETED or ABORTED status

completed

Boolean

Matches the releases with the COMPLETED status

aborted

Boolean

Matches the releases with the ABORTED status

onlyMine

Boolean

Matches the releases with me as the owner

onlyFlagged

Boolean

Matches the releases which need attention or are at risk

onlyArchived

Boolean

Matches the releases which have been archived

parentId

String

Matches the releases stored under this folder

orderBy

String

The order of the returning set: risk, start_date, end_date, title (only available for templates)

orderDirection

String

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:

HTTP Request
GET /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e
Curl
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' \
    'Accept:application/json'

Using the following parameters:

Table 4. /api/v1/phases/{phaseId}
Parameter Description

phaseId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Phase'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

tasks

Array

The list of tasks in this phase.

release

Varies

The release this phase belongs to.

status

String

The state the phase is in.

color

String

The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E'

originId

String

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:

HTTP Request
GET /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
    'Accept:application/json'

Using the following parameters:

Table 5. /api/v1/tasks/{taskId}
Parameter Description

taskId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

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:

HTTP Request
GET /api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/phases/byTitle?phaseTitle=find%20me&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

phaseTitle

The phase title

releaseId

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:

HTTP Request
GET /api/v1/phases/search?phaseTitle=DEV&releaseId=Applications/Release162151faba694d03aa3065665cf26f21&phaseVersion=ALL
Curl
$ curl 'http://localhost:5516/api/v1/phases/search?phaseTitle=DEV&releaseId=Applications/Release162151faba694d03aa3065665cf26f21&phaseVersion=ALL' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

phaseTitle

Part of a phase title

releaseId

(Full phase identifier; for example, Applications/Release1/Phase2

phaseVersion

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:

HTTP Request
GET /api/v1/tasks/byTitle?taskTitle=find%20me&phaseTitle=phase%20title&releaseId=Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/tasks/byTitle?taskTitle=find%20me&phaseTitle=phase%20title&releaseId=Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

taskTitle

The task title

phaseTitle

The phase title

releaseId

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:

HTTP Request
GET /api/v1/releases?page=0&resultsPerPage=2
Curl
$ curl 'http://localhost:5516/api/v1/releases?page=0&resultsPerPage=2' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases?page=0&resultsPerPage=2' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

page

The page to fetch, zero-based; default value is 0

resultsPerPage

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:

HTTP Request
GET /api/v1/templates?title=Test%20template&tag=tag1&page=0&resultsPerPage=2
Curl
$ curl 'http://localhost:5516/api/v1/templates?title=Test%20template&tag=tag1&page=0&resultsPerPage=2' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

page

The page to fetch, zero-based; default value is 0

resultsPerPage

Number of results per page, default value is 100

title

Title of the release

tag

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 6. /api/v1/templates/{templateId}/create
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Path Type Description

releaseTitle

String

Release title

variables

Object

Release variables

releaseVariables

Object

Release variables (deprecated - use 'variables')

releasePasswordVariables

Object

Release password variables (deprecated - use 'variables')

scheduledStartDate

Null

Date when the release is supposed to start.

autoStart

Boolean

If true, the release will automatically start at the scheduledStartDate.

folderId

String

If not null, specifies the id of the folder where the release is to be created.

startedFromTaskId

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 7. /api/v1/templates/{templateId}/create
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Path Type Description

releaseTitle

String

Release title

variables

Object

Release variables

releaseVariables

Object

Release variables (deprecated - use 'variables')

releasePasswordVariables

Object

Release password variables (deprecated - use 'variables')

scheduledStartDate

Null

Date when the release is supposed to start.

autoStart

Boolean

If true, the release will automatically start at the scheduledStartDate.

folderId

String

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:

HTTP Request
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/start' \
    'Accept:application/json'

Using the following parameters:

Table 8. /api/v1/releases/{releaseId}/start
Parameter Description

releaseId

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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks' -i -X GET \
    -H 'Content-Type: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/active-tasks' \
    'Content-Type:application/json'

Using the following parameters:

Table 9. /api/v1/releases/{releaseId}/active-tasks
Parameter Description

releaseId

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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.Task'.

[].title

String

The title of the item.

[].description

String

The description of the item.

[].owner

String

The owner of the item.

[].scheduledStartDate

String

The date that the item is supposed to start.

[].dueDate

String

The date that the item is supposed to end.

[].startDate

String

The actual start date.

[].endDate

String

The actual end date.

[].plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

[].flagStatus

String

Flags indicate that an item needs attention.

[].flagComment

String

The reason the item is flagged.

[].comments

Array

The comments on the task.

[].container

Varies

The phase or task this task is contained in.

[].facets

Array

Facets applied to the task.

[].attachments

Array

List of file attachments on this task.

[].status

String

The state the task is in.

[].team

String

The name of the team this task is assigned to.

[].watchers

Array

The watchers assigned to this task.

[].waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

[].delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

[].precondition

String

A snippet of code that is evaluated when the task is started.

[].failureHandler

String

A snippet of code that is evaluated when the task is failed.

[].taskFailureHandlerEnabled

Boolean

The failed script will be executed.

[].taskRecoverOp

String

Task recovery operation performed after task failure.

[].failuresCount

Number

The number of times this task has failed.

[].variableMapping

Object

Map from property name to a variable name that replaces that property

[].externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

[].tags

Array

The tags of the task. Tags can be used for grouping and querying.

[].locked

Boolean

The task is locked

[].checkAttributes

Boolean

Check attributes on task execution

Assign a task to a user

To assign a task to a user, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/assign/admin
Curl
$ 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'
HTTPie
$ 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:

Table 10. /api/v1/tasks/{taskId}/assign/{username}
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

username

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

Add a comment to a task

To add a comment to a task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/comment

{
  "comment" : "Important step in our pipeline"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 11. /api/v1/tasks/{taskId}/comment
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/complete

{
  "comment" : "Task completed!"
}
Curl
$ 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!"
}'
HTTPie
$ 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:

Table 12. /api/v1/tasks/{taskId}/complete
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

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:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/reopen

{
  "comment" : "Reopen a task that has been completed in advance."
}
Curl
$ 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."
}'
HTTPie
$ 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:

Table 13. /api/v1/tasks/{taskId}/reopen
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

Fail a task

To fail a task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/fail

{
  "comment" : "Task failed :-("
}
Curl
$ 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 :-("
}'
HTTPie
$ 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:

Table 14. /api/v1/tasks/{taskId}/fail
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

Retry a failed task

To retry a failed task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/retry

{
  "comment" : "Retry failed task."
}
Curl
$ 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."
}'
HTTPie
$ 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:

Table 15. /api/v1/tasks/{taskId}/retry
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

Skip a task

To skip a task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/skip

{
  "comment" : "Task skipped"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 16. /api/v1/tasks/{taskId}/skip
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

Abort a task

To abort a task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/abort

{
  "comment" : "Please abort this task"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 17. /api/v1/tasks/{taskId}/abort
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

comment

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

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:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/start

{
  "variables" : [ {
    "key" : "title",
    "value" : "value1",
    "type" : "xlrelease.StringVariable",
    "id" : "Applications/ReleasesTest/Release1/Variable1"
  } ]
}
Curl
$ 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"
  } ]
}'
HTTPie
$ 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:

Table 18. /api/v1/tasks/{taskId}/start
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Path Type Description

variables

Array

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

variables

Array

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:

HTTP Request
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/abort

{
  "abortComment" : "Abort comment"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 19. /api/v1/releases/{releaseId}/abort
Parameter Description

releaseId

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.

HTTP Request
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/resume' \
    'Accept:application/json'

Using the following parameters:

Table 20. /api/v1/releases/{releaseId}/resume
Parameter Description

releaseId

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.

HTTP Request
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/restart?fromPhaseId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&fromTaskId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726&phaseVersion=ALL&resume=true
Curl
$ 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'
HTTPie
$ 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:

Table 21. /api/v1/releases/{releaseId}/restart
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

Parameter Description

fromPhaseId

Full identifier of the phase; for example, Applications/Release1/Phase11

fromTaskId

Full identifier of the task; for example, Applications/Release1/Phase11/Task111

phaseVersion

'LATEST', or 'ORIGINAL' or old behavior 'ALL'. Determines which version to copy of the phase.

resume

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:

HTTP 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
$ 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
  }
}'
HTTPie
$ 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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

Total risk score

Using the following query parameters:

Parameter Description

folderId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

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
$ curl 'http://localhost:5516/api/v1/templates/import' --form file=@template.xlr
HTTPie
$ 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:

HTTP Request
POST /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21/copy

{
  "title" : "My template copy title",
  "description" : "My template copy description"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 22. /api/v1/templates/{templateId}/copy
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Path Type Description

title

String

The new title of the template. Mandatory

description

String

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 23. /api/v1/phases/{id}/phase
Parameter Description

id

Full identifier of the template/release; for example, Applications/Release1

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Phase'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

tasks

Array

The list of tasks in this phase.

release

Varies

The release this phase belongs to.

status

String

The state the phase is in.

color

String

The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E'

originId

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Phase'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

tasks

Array

The list of tasks in this phase.

release

Varies

The release this phase belongs to.

status

String

The state the phase is in.

color

String

The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E'

originId

String

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:

HTTP Request
POST /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1
Curl
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/copy?targetPosition=1' \
    'Accept:application/json'

Using the following path parameters:

Table 24. /api/v1/phases/{phaseId}/copy
Parameter Description

phaseId

Full identifier of the phase; for example, Applications/Release1/Phase2

Using the following query parameters:

Parameter Description

targetPosition

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 25. /api/v1/phases/{phaseId}
Parameter Description

phaseId

Full phase identifier; for example, Applications/Release1/Phase2

Using the following query parameters:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Phase'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

tasks

Array

The list of tasks in this phase.

release

Varies

The release this phase belongs to.

status

String

The state the phase is in.

color

String

The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E'

originId

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Phase'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

tasks

Array

The list of tasks in this phase.

release

Varies

The release this phase belongs to.

status

String

The state the phase is in.

color

String

The color of the phase top bar in the UI. Format: #(hex value); for example '#3D6C9E'

originId

String

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:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/tasks

{
  "id" : "null",
  "type" : "xlrelease.UserInputTask",
  "title" : "input task"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 26. /api/v1/tasks/{containerId}/tasks
Parameter Description

containerId

Full identifier of the task container: either a Phase, a ParallelGroup or a SequentialGroup; for example Applications/Release1/Phase2

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

variables

Array

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

position

The position in the phase, zero-based; leave empty to add the task to the end of the phase

Table 27. /api/v1/phases/{phaseId}/tasks
Parameter Description

phaseId

Full identifier of the task container: either a Phase, a ParallelGroup or a SequentialGroup; for example Applications/Release1/Phase2

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

variables

Array

List of variables

Copy a task to a specific position inside a phase

To copy a task to a specified position, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1' -i -X POST
HTTPie
$ http POST 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/copy/?targetContainerId=Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e&targetPosition=1'

Using the following path parameters:

Table 28. /api/v1/tasks/{taskId}/copy/
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

Using the following query parameters:

Parameter Description

targetContainerId

Full identifier of the task container; for example, Applications/Release1/Phase3

targetPosition

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:

HTTP Request
PUT /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726

{
  "id" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726",
  "type" : "xlrelease.Task",
  "title" : "new title"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 29. /api/v1/tasks/{taskId}
Parameter Description

taskId

The updated task object; only top-level properties will be updated.

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Task'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

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.

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/changeType?targetType=xlrelease.GateTask
Curl
$ 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'
HTTPie
$ 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

targetType

Target task type; for example, targetType=xlrelease.Task or targetType=jenkins.Build

Table 30. /api/v1/tasks/{taskId}/changeType
Parameter Description

taskId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.GateTask'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

comments

Array

The comments on the task.

container

Varies

The phase or task this task is contained in.

facets

Array

Facets applied to the task.

attachments

Array

List of file attachments on this task.

status

String

The state the task is in.

team

String

The name of the team this task is assigned to.

watchers

Array

The watchers assigned to this task.

waitForScheduledStartDate

Boolean

The task is not started until the scheduledStartDate is reached if set to true.

delayDuringBlackout

Boolean

The task is to be delayed when a blackout period is active.

precondition

String

A snippet of code that is evaluated when the task is started.

failureHandler

String

A snippet of code that is evaluated when the task is failed.

taskFailureHandlerEnabled

Boolean

The failed script will be executed.

taskRecoverOp

String

Task recovery operation performed after task failure.

failuresCount

Number

The number of times this task has failed.

variableMapping

Object

Map from property name to a variable name that replaces that property

externalVariableMapping

Object

Similar to variableMapping, but only for password variables with external values and it is managed internally.

tags

Array

The tags of the task. Tags can be used for grouping and querying.

locked

Boolean

The task is locked

checkAttributes

Boolean

Check attributes on task execution

conditions

Array

Conditions

dependencies

Array

Dependencies

Lock/unlock task

Lock task

To lock a task, send this request:

HTTP Request
PUT /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' -i -X PUT \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/lock' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/conditions

{
  "title" : "this must be true to go on",
  "checked" : false
}
Curl
$ 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
}'
HTTPie
$ 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

String

Title of condition

checked

Boolean

Condition checked

Using the following parameters:

Table 31. /api/v1/tasks/{taskId}/conditions
Parameter Description

taskId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.GateCondition'.

title

String

Title

checked

Boolean

Checked

Update a condition on a gate task

To (un)check the condition on a gate task, send this request:

HTTP Request
POST /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1

{
  "title" : "my first condition",
  "checked" : true
}
Curl
$ 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
}'
HTTPie
$ 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

String

Title of condition

checked

Boolean

Condition checked

Using the following parameters:

Table 32. /api/v1/tasks/{conditionId}
Parameter Description

conditionId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.GateCondition'.

title

String

Title

checked

Boolean

Checked

Delete a condition from a gate task

To delete a condition from a gate task, send this request:

HTTP Request
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/GateCondition1'

Using the following parameters:

Table 33. /api/v1/tasks/{conditionId}
Parameter Description

conditionId

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:

HTTP Request
POST /api/v1/tasks/Applications/Releasecaa6882c22ff46b89abf7140359df88a/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/dependencies/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
Curl
$ 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'
HTTPie
$ 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:

Table 34. /api/v1/tasks/{taskId}/dependencies/{targetId}
Parameter Description

taskId

Full identifier of the gate task; for example, Applications/Release1/Phase2/Task3

targetId

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Dependency'.

gateTask

Varies

The source gate task from the dependency.

target

Varies

The target of the dependency (release, phase, or task).

targetId

String

The target ID of the dependency (when it is filled, the target will be empty).

archivedTargetTitle

String

The target title once it is archived.

archivedTargetId

String

The target ID once it is archived.

archivedAsResolved

Boolean

Shows if the plan item was COMPLETED or ABORTED.

Delete a dependency to a gate task

To delete a dependency to a gate task, send this request:

HTTP Request
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/Dependency76ad0473a3a24ee1b961948db4532857'

Using the following parameters:

Table 35. /api/v1/tasks/{dependencyId}
Parameter Description

dependencyId

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:

HTTP Request
GET /api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65
Curl
$ curl 'http://localhost:5516/api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65' -i -X GET \
    -H 'Accept: application/octet-stream'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment313f941a22104133bd7008a605cdaa65' \
    'Accept:application/octet-stream'

Using the following parameter:

Table 36. /api/v1/releases/attachments/{attachmentId}
Parameter Description

attachmentId

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:

HTTP 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
$ 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--
'
HTTPie
$ 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:

Table 37. /api/v1/tasks/{taskId}/attachments
Parameter Description

taskId

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:

HTTP Request
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/attachments/Applications/Release162151faba694d03aa3065665cf26f21/Attachment81fb699a3ba54f92bc6e8396d8bd96bb' \
    'Accept:application/json'

Using the following parameters:

Table 38. /api/v1/tasks/{taskId}/attachments/{attachmentId}
Parameter Description

taskId

Full identifier of the task; for example, Applications/Release1/Phase2/Task3

attachmentId

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:

HTTP 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
$ 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
  }
}'
HTTPie
$ 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:

Table 39. /api/v1/templates/{templateId}
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

Total risk score

Update release properties

To update the properties of a release, send this request:

HTTP 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
$ 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
  }
}'
HTTPie
$ 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:

Table 40. /api/v1/releases/{releaseId}
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

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

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Release'.

title

String

The title of the item.

description

String

The description of the item.

owner

String

The owner of the item.

scheduledStartDate

String

The date that the item is supposed to start.

dueDate

String

The date that the item is supposed to end.

startDate

String

The actual start date.

endDate

String

The actual end date.

plannedDuration

Number

The time that the item is supposed to take to complete, in seconds.

flagStatus

String

Flags indicate that an item needs attention.

flagComment

String

The reason the item is flagged.

releaseTriggers

Array

The triggers that may start a release from a template. (Templates only)

teams

Array

The teams configured on the release.

attachments

Array

File attachments of the release.

phases

Array

The list of phases in the release.

realFlagStatus

String

The calculated flag status, derived from the flags from the release and its tasks.

status

String

The state the release is in.

tags

Array

The tags of the release. Tags can be used for grouping and querying.

variables

Array

List of variable CIs representing variables in this release or template

abortOnFailure

Boolean

Releases automatically abort when a task fails if this property is set to true.

archiveRelease

Boolean

Archive release

allowPasswordsInAllFields

Boolean

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.

disableNotifications

Boolean

Disable all notifications for this release.

allowConcurrentReleasesFromTrigger

Boolean

If set to false, a trigger can’t create a release if the previous one it created is still running.

originTemplateId

String

The ID of the template that created this release.

createdFromTrigger

Boolean

True if release was created by a trigger.

scriptUsername

String

The credentials of this user are used to run automated scripts in this release.

scriptUserPassword

String

The password of the user that lends his credentials to run the scripts.

extensions

Array

Extensions of this release, e.g. 'Release contents dashboard'

startedFromTaskId

String

The Create Release task from which this release was created, if any

parentReleaseId

String

ID of the Release from which this release was created, if any

autoStart

Boolean

If true, the release will automatically start at scheduledStartDate.

abortComment

String

The comment to associate with the action

variableMapping

Object

Map from property name to a variable name that replaces that property

riskProfile

Varies

Risk profile used in risk calculations

riskScore

String

Risk score

totalRiskScore

String

Total risk score

Delete commands for task, phase, template, or release

Delete a task

To delete a task, send this request:

HTTP Request
DELETE /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726'

Using the following parameters:

Table 41. /api/v1/tasks/{taskId}
Parameter Description

taskId

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:

HTTP Request
DELETE /api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e
Curl
$ curl 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/phases/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e'

Using the following parameters:

Table 42. /api/v1/phases/{phaseId}
Parameter Description

phaseId

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:

HTTP Request
DELETE /api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/templates/Applications/Release162151faba694d03aa3065665cf26f21'

Using the following parameters:

Table 43. /api/v1/templates/{templateId}
Parameter Description

templateId

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:

HTTP Request
DELETE /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21'

Using the following parameters:

Table 44. /api/v1/releases/{releaseId}
Parameter Description

releaseId

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
HTTP Request
GET /api/v1/templates/zip/Applications/Release51f630afd86147de9cec79ad0a1a3fe9
Curl
$ curl 'http://localhost:5516/api/v1/templates/zip/Applications/Release51f630afd86147de9cec79ad0a1a3fe9' -i -X GET \
    -H 'Accept: */*'
HTTPie
$ 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:

HTTP Request
GET /api/v1/folders/list?depth=1
Curl
$ curl 'http://localhost:5516/api/v1/folders/list?depth=1' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/list?depth=1' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

depth

The (optional) depth to search for; defaults at 1

permissions

The (optional) boolean to decorate the folders with the effective permissions; defaults with false

page

The (optional) page of results to return; defaults at 0

resultsPerPage

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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.Folder'.

[].title

String

User provided title of the folder

[].children

Array

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:

HTTP Request
POST /api/v1/folders/Applications

{
  "id" : null,
  "type" : "xlrelease.Folder",
  "title" : "New folder",
  "children" : [ ]
}
Curl
$ 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" : [ ]
}'
HTTPie
$ 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

id

Null

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.Folder'.

title

String

User provided title of the folder

children

Array

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:

HTTP Request
GET /api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder8e2fd8e1d9ef4b5a97fcc5278b538035/list' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

depth

The (optional) depth to search for; defaults at 1

permissions

The (optional) boolean to decorate the folders with the effective permissions; defaults with false

page

The (optional) page of results to return; defaults at 0

resultsPerPage

The (optional) the number of results per page; defaults at 50

Table 45. /api/v1/folders/{folderId}/list
Parameter Description

folderId

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:

HTTP Request
GET /api/v1/folders/find?byPath=Microservices/QA
Curl
$ curl 'http://localhost:5516/api/v1/folders/find?byPath=Microservices/QA' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/find?byPath=Microservices/QA' \
    'Accept:application/json'

Using the following parameters:

Parameter Description

byPath

The path for the folder to search on

depth

The (optional) depth to search for; defaults at 1

Get folder

To find a folder using a specific folder ID, send this request:

HTTP Request
GET /api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder678b4c5842214e958643767a6c34b46b/Folder8397751a28404c10ab91f54f10b003b3' \
    'Accept:application/json'

Using the following parameters:

Table 46. /api/v1/folders/{folderId}
Parameter Description

folderId

The id of the folder

Parameter Description

depth

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:

HTTP Request
GET /api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Folder31988a2371cf49e0a49572b98aa8e496/Folderdc9ee1fe6e5d4fe9ab78f8515f85aee8/templates' \
    'Accept:application/json'

Using the following parameters:

Table 47. /api/v1/folders/{folderId}/templates
Parameter Description

folderId

The id of the folder

Parameter Description

depth

The (optional) depth to search for; defaults at 1

page

The (optional) page of results to return; defaults at 0

resultsPerPage

The (optional) the number of results per page; defaults at 50

If you want to search for releases:

HTTP Request
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
$ 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
}'
HTTPie
$ 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:

Table 48. /api/v1/folders/{folderId}/releases
Parameter Description

folderId

The id of the folder

Parameter Description

page

The (optional) page to search for; defaults at 0

numberbypage

The (optional) the number of results per page; defaults at 50

depth

The (optional) depth to search for; defaults at 1

Path Type Description

title

String

Case-insensitive matches the part of the release title

tags

String

Matches the releases containing all of the specified tags

timeFrame

String

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

from

Long

Matches the releases with end date after or equal to this date

to

Long

Matches the releases with start date before this date

active

Boolean

Matches the releases with the IN_PROGRESS, FAILED, FAILING or PAUSED status

planned

Boolean

Matches the releases with the PLANNED status

inProgress

Boolean

Matches the releases with the IN_PROGRESS status

paused

Boolean

Matches the releases with the PAUSED status

failing

Boolean

Matches the releases with the FAILING status

failed

Boolean

Matches the releases with the FAILED status

inactive

Boolean

Matches the releases with the COMPLETED or ABORTED status

completed

Boolean

Matches the releases with the COMPLETED status

aborted

Boolean

Matches the releases with the ABORTED status

onlyMine

Boolean

Matches the releases with me as the owner

onlyFlagged

Boolean

Matches the releases which need attention or are at risk

onlyArchived

Boolean

Matches the releases which have been archived

parentId

String

Matches the releases stored under this folder

orderBy

String

The order of the returning set: risk, start_date, end_date, title (only available for templates)

orderDirection

String

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:

HTTP Request
POST /api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folderaffa68ebf9214a10b17780b922e558ad/templates/Applications/Folder913807084b3a4c259a1161d3928c98e3/Release1' \
    'Accept:application/json'

Using the following parameters:

Table 49. /api/v1/folders/{folderId}/templates/{templateId}
Parameter Description

folderId

The target folder the template will be moved to

templateId

The id of the template to be moved

Add folder inside folder

To create nested folders, send this request:

HTTP Request
POST /api/v1/folders/Applications/Folder53f0cc0a38644e84a6418cfd080b8c44

{
  "id" : null,
  "type" : "xlrelease.Folder",
  "title" : "QA",
  "children" : [ ]
}
Curl
$ 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" : [ ]
}'
HTTPie
$ 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:

Table 50. /api/v1/folders/{folderId}
Parameter Description

folderId

The id of the folder to create the folder in

Delete folders

To delete a folder, send this request:

HTTP Request
DELETE /api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/folders/Applications/Folderde8e2349c8874b19aea6b8b70460fcdd'

Using the following parameters:

Table 51. /api/v1/folders/{folderId}
Parameter Description

folderId

The id of the folder to delete

Move folders

To move folders inside another folder, send this request:

HTTP Request
POST /api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folder8fbfb2f012bd4821b5bb756510c2a14b/move?newParentId=Applications/Folder0ec36af1951b41a9a10cae9e2c70c2b7' \
    'Accept:application/json'

Using the following parameters:

Table 52. /api/v1/folders/{folderId}/move
Parameter Description

folderId

The id of the folder to move

Parameter Description

newParentId

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:

HTTP Request
POST /api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/folders/Applications/Folder9cf2cd7f373447cb8d4ac70464b3a995/rename?newName=Microservices%20II' \
    'Accept:application/json'

Using the following parameters:

Table 53. /api/v1/folders/{folderId}/rename
Parameter Description

folderId

The id of the folder to move

Parameter Description

newName

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

Table 54. 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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variables' \
    'Accept:application/json'

Using the following path parameters:

Table 55. /api/v1/releases/{releaseId}/variables
Parameter Description

releaseId

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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.StringVariable'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].key

String

The unique name of the variable in the way it is used in template or release, without curly braces

[].requiresValue

Boolean

Shows if an empty value is a valid value for this variable

[].showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

[].label

String

Label of the variable

[].description

String

Description of the variable

[].valueProvider

Varies

Configuration of the variable values provider

[].inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

[].value

String

Value of the release variable or default value of the template variable

[].multiline

Boolean

If checked variable value will be multiline text

[].preventInterpolation

Boolean

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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/variableValues' \
    'Accept:application/json'

Using the following path parameters:

Table 56. /api/v1/releases/{releaseId}/variableValues
Parameter Description

releaseId

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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' \
    'Accept:application/json'

Using the following path parameters:

Table 57. /api/v1/releases/{variableId}
Parameter Description

variableId

Full identifier of the variable; for example, Applications/Release1/Variable1

All the fields in the response and their description:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.StringVariable'.

folderId

String

If set, this field contains the folder that this configuration belongs to.

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

label

String

Label of the variable

description

String

Description of the variable

valueProvider

Varies

Configuration of the variable values provider

inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

value

String

Value of the release variable or default value of the template variable

multiline

Boolean

If checked variable value will be multiline text

preventInterpolation

Boolean

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:

HTTP Request
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
$ 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
}'
HTTPie
$ 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:

Table 58. /api/v1/releases/{releaseId}/variables
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

All the fields in the response and their description:

Path Type Description

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

value

String

Value of the release variable or default value of the template variable

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

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:

HTTP Request
DELETE /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b' \
    'Accept:application/json'

Using the following path parameters:

Table 59. /api/v1/releases/{variableId}
Parameter Description

variableId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 60. /api/v1/releases/{variableId}
Parameter Description

variableId

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:

HTTP Request
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
$ 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
} ]'
HTTPie
$ 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:

Table 61. /api/v1/releases/{releaseId}/variables
Parameter Description

releaseId

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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/possibleValues' \
    'Accept:application/json'

Using the following path parameters:

Table 62. /api/v1/releases/{variableId}/possibleValues
Parameter Description

variableId

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:

HTTP Request
GET /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/used' \
    'Accept:application/json'

Using the following path parameters:

Table 63. /api/v1/releases/{variableId}/used
Parameter Description

variableId

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:

HTTP Request
POST /api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/replace

{
  "variable" : "${var2}",
  "value" : "value2"
}
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release162151faba694d03aa3065665cf26f21/Variable4d6814d312344aa68a36974e714bac0b/replace' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{
  "variable" : "${var2}",
  "value" : "value2"
}'
HTTPie
$ 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:

Table 64. /api/v1/releases/{variableId}/replace
Parameter Description

variableId

Full identifier of the variable; for example, Applications/Release1/Variable1

Path Type Description

variable

String

Variable key with placeholder

value

String

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:

HTTP Request
GET /api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables
Curl
$ curl 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/tasks/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726/variables' \
    'Accept:application/json'

With the following path parameters:

Table 65. /api/v1/tasks/{taskId}/variables
Parameter Description

taskId

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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.StringVariable'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].key

String

The unique name of the variable in the way it is used in template or release, without curly braces

[].requiresValue

Boolean

Shows if an empty value is a valid value for this variable

[].showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

[].label

String

Label of the variable

[].description

String

Description of the variable

[].valueProvider

Varies

Configuration of the variable values provider

[].inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

[].value

String

Value of the release variable or default value of the template variable

[].multiline

Boolean

If checked variable value will be multiline text

[].preventInterpolation

Boolean

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:

HTTP 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
$ 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
} ]'
HTTPie
$ 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.Variable'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].key

String

The unique name of the variable in the way it is used in template or release, without curly braces

[].requiresValue

Boolean

Shows if an empty value is a valid value for this variable

[].showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

[].label

String

Label of the variable

[].description

String

Description of the variable

[].valueProvider

Varies

Configuration of the variable values provider

[].inherited

Boolean

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:

HTTP Request
GET /api/v1/config/Configuration/variables/global
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.StringVariable'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].key

String

The unique name of the variable in the way it is used in template or release, without curly braces

[].requiresValue

Boolean

Shows if an empty value is a valid value for this variable

[].showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

[].label

String

Label of the variable

[].description

String

Description of the variable

[].valueProvider

Varies

Configuration of the variable values provider

[].inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

[].value

String

Value of the release variable or default value of the template variable

[].multiline

Boolean

If checked variable value will be multiline text

[].preventInterpolation

Boolean

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:

HTTP Request
GET /api/v1/config/Configuration/variableValues/global
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/variableValues/global' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/config/Configuration/variables/global/Variable1
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' \
    'Accept:application/json'

Using the following path parameters:

Table 66. /api/v1/config/{variableId}
Parameter Description

variableId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

value

String

Value of the release variable or default value of the template variable

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 67. /api/v1/config/{variableId}
Parameter Description

variableId

Full identifier of the global variable; for example, Configuration/variables/global/Variable1

All the variables in the response and their description:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.StringVariable'.

folderId

String

If set, this field contains the folder that this configuration belongs to.

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

label

String

Label of the variable

description

String

Description of the variable

valueProvider

Varies

Configuration of the variable values provider

inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

value

String

Value of the release variable or default value of the template variable

multiline

Boolean

If checked variable value will be multiline text

preventInterpolation

Boolean

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

HTTP Request
DELETE /api/v1/config/Configuration/variables/global/Variable1
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/config/Configuration/variables/global/Variable1'

Using the following path parameters:

Table 68. /api/v1/config/{variableId}
Parameter Description

variableId

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:

HTTP Request
GET /api/v1/folders/Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34/variables?folderOnly=false
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folderc3123bb7d6574d7694075ddb1050119b/Folder078f2274c927493eb31f10bf9e9d7d34/variables?folderOnly=false' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.StringVariable'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].key

String

The unique name of the variable in the way it is used in template or release, without curly braces

[].requiresValue

Boolean

Shows if an empty value is a valid value for this variable

[].showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

[].label

String

Label of the variable

[].description

String

Description of the variable

[].valueProvider

Varies

Configuration of the variable values provider

[].inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

[].value

String

Value of the release variable or default value of the template variable

[].multiline

Boolean

If checked variable value will be multiline text

[].preventInterpolation

Boolean

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:

HTTP Request
GET /api/v1/folders/Applications/Folder38955604d8564e3eb03e21069003010a/Folderab4fe1f5a31f4683a560e5e494789bac/variableValues?folderOnly=false
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder38955604d8564e3eb03e21069003010a/Folderab4fe1f5a31f4683a560e5e494789bac/variableValues?folderOnly=false' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/folders/Applications/Foldera401c1bf62c849839e6bfe60a7e4ea37/Variable69f24fad3983426abf01cf9230a89cb5' \
    'Accept:application/json'

Using the following path parameters:

Table 69. /api/v1/folders/{folderId}/{variableId}
Parameter Description

folderId

The id of the folder

variableId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

value

String

Value of the release variable or default value of the template variable

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 70. /api/v1/folders/{folderId}/{variableId}
Parameter Description

folderId

The id of the folder

variableId

The id of the folder variable

All the variables in the response and their description:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.StringVariable'.

folderId

String

If set, this field contains the folder that this configuration belongs to.

key

String

The unique name of the variable in the way it is used in template or release, without curly braces

requiresValue

Boolean

Shows if an empty value is a valid value for this variable

showOnReleaseStart

Boolean

Shows if this variable will be shown on create release page

label

String

Label of the variable

description

String

Description of the variable

valueProvider

Varies

Configuration of the variable values provider

inherited

Boolean

Determines whether the variable value is inherited from the template variable. Used in the Create Release Task only.

value

String

Value of the release variable or default value of the template variable

multiline

Boolean

If checked variable value will be multiline text

preventInterpolation

Boolean

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

HTTP Request
DELETE /api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/folders/Applications/Folder60b9ab66e5f14e44831cbf9dce2f136e/Variableac3a76a307454e42badba69f7ca0f3a6' \
    'Accept:application/json'

Using the following path parameters:

Table 71. /api/v1/folders/{folderId}/{variableId}
Parameter Description

folderId

The id of the folder

variableId

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:

HTTP Request
GET /api/v1/config/byTypeAndTitle?configurationType=jira.Server&title=my%20JIRA%20server&folderId=Applications/Folderc1a97d08a6e5431db91a88ea4c104c89&folderOnly=true
Curl
$ 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'
HTTPie
$ 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

configurationType

Type of the Configuration object

title

The title of the Configuration object

folderId

The (optional) id of a possible folder that has configurations

folderOnly

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:

HTTP Request
GET /api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/config/Configuration/Custom/Configurationf25ea289717c4936a6d3b80e37024a1f' \
    'Accept:application/json'

Using the following parameters:

Table 72. /api/v1/config/{configurationId}
Parameter Description

configurationId

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:

HTTP Request
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
$ 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"
}'
HTTPie
$ 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:

HTTP Request
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
$ 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"
}'
HTTPie
$ 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:

Table 73. /api/v1/config/{configurationId}
Parameter Description

configurationId

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:

HTTP Request
DELETE /api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459
Curl
$ curl 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/config/Configuration/Custom/Configuration639f11e9edeb4269a2d635d208e18459' \
    'Accept:application/json'

Using the following parameters:

Table 74. /api/v1/config/{configurationId}
Parameter Description

configurationId

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:

HTTP Request
GET /api/v1/config/system-message
Curl
$ curl 'http://localhost:5516/api/v1/config/system-message' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false
Curl
$ curl 'http://localhost:5516/api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false' -i -X GET
HTTPie
$ http GET 'http://localhost:5516/api/v1/dsl/export/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false'

Using the following parameters:

Table 75. /api/v1/dsl/export/{templateId}
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Parameter Description

exportTemplate

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:

HTTP Request
GET /api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false
Curl
$ curl 'http://localhost:5516/api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false' -i -X GET
HTTPie
$ http GET 'http://localhost:5516/api/v1/dsl/preview/Applications/Release162151faba694d03aa3065665cf26f21?exportTemplate=false'

Using the following parameters:

Table 76. /api/v1/dsl/preview/{templateId}
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

Parameter Description

exportTemplate

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:

HTTP Request
GET /api/v1/users
Curl
$ curl 'http://localhost:5516/api/v1/users' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/users?email=email@mail.com&lastActiveBefore=1540380600000
Curl
$ curl 'http://localhost:5516/api/v1/users?email=email@mail.com&lastActiveBefore=1540380600000' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

Email of the user.

fullName

Name of the user.

loginAllowed

Is login allowed for the user.

lastActiveAfter

Select users last active after this timestamp

lastActiveBefore

Select users last active before this timestamp

page

The (optional) page of results to return. Default value is 0.

resultsPerPage

The (optional) number of results per page. Default value is 100.

The response fields explained:

Path Type Description

[].username

String

The username.

[].external

Boolean

Flag that specifies if the user is coming from an external source.

[].profileId

String

The CI ID of the user profile.

[].email

Varies

The email of the user.

[].fullName

Varies

The full name of the user.

[].externalId

String

The external id of the user.

[].loginAllowed

Boolean

Whether user is allowed to login or not

[].dateFormat

Varies

The profile setting for the date format.

[].timeFormat

Varies

The profile setting for the time format.

[].firstDayOfWeek

Number

The profile setting for the first day of week.

[].lastActive

Number

The timestamp corresponding to the last time this user interacted with Digital.ai Release

[].analyticsEnabled

Boolean

The profile settings for opt-out from anonymous product usage analytics and guides

[].taskDrawerEnabled

Boolean

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:

HTTP Request
GET /api/v1/users/user1
Curl
$ curl 'http://localhost:5516/api/v1/users/user1' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/users/user1' \
    'Accept:application/json'
Table 77. /api/v1/users/{username}
Parameter Description

username

The username to retrieve information from.

Create new users

You can create single users as follows:

HTTP Request
POST /api/v1/users/user2

{
  "password" : "Passw0rd!",
  "loginAllowed" : true,
  "fullName" : "My new User"
}
Curl
$ 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"
}'
HTTPie
$ 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

email

String

The email of the user.

fullName

String

The full name of the user.

loginAllowed

Boolean

The login permission for the user.

dateFormat

Varies

The profile setting for the date format.

timeFormat

Varies

The profile setting for the time format.

firstDayOfWeek

Number

The profile setting for the first day of week.

Table 78. /api/v1/users/{username}
Parameter Description

username

The username from the user to be created.

User preferences

Table 79. Dates
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:

HTTP Request
PUT /api/v1/users/user1

{
  "loginAllowed" : false,
  "dateFormat" : "M/d/yy",
  "timeFormat" : "h:mm a",
  "firstDayOfWeek" : 0
}
Curl
$ 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
}'
HTTPie
$ 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

email

String

The email of the user.

fullName

String

The full name of the user.

loginAllowed

Boolean

The login permission for the user.

dateFormat

Varies

The profile setting for the date format.

timeFormat

Varies

The profile setting for the time format.

firstDayOfWeek

Number

The profile setting for the first day of week.

Table 80. /api/v1/users/{username}
Parameter Description

username

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:

HTTP Request
PUT /api/v1/users

[ {
  "username" : "user1",
  "loginAllowed" : false,
  "dateFormat" : "M/d/yy",
  "timeFormat" : "h:mm a",
  "firstDayOfWeek" : 0
} ]
Curl
$ 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
} ]'
HTTPie
$ 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

HTTP Request
POST /api/v1/users/user1/password

{
  "currentPassword" : "myPassword",
  "newPassword" : "Passw0rd!"
}
Curl
$ curl 'http://localhost:5516/api/v1/users/user1/password' -i -X POST \
    -H 'Content-Type: application/json' \
    -d '{
  "currentPassword" : "myPassword",
  "newPassword" : "Passw0rd!"
}'
HTTPie
$ echo '{
  "currentPassword" : "myPassword",
  "newPassword" : "Passw0rd!"
}' | http POST 'http://localhost:5516/api/v1/users/user1/password' \
    'Content-Type:application/json'
Path Type Description

currentPassword

String

The current password of the user, only required if you change your own password.

newPassword

String

The new password of the user.

Table 81. /api/v1/users/{username}/password
Parameter Description

username

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:

HTTP Request
DELETE /api/v1/users/user3
Curl
$ curl 'http://localhost:5516/api/v1/users/user3' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/users/user3'
Table 82. /api/v1/users/{username}
Parameter Description

username

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:

HTTP Request
GET /api/v1/global-permissions
Curl
$ curl 'http://localhost:5516/api/v1/global-permissions' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/roles?page=0&resultsPerPage=2
Curl
$ curl 'http://localhost:5516/api/v1/roles?page=0&resultsPerPage=2' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/roles/Developers
Curl
$ curl 'http://localhost:5516/api/v1/roles/Developers' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/roles/Developers' \
    'Accept:application/json'

with the following path parameters:

Table 83. /api/v1/roles/{roleName}
Parameter Description

roleName

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

name

String

This field contains name of the role.

id

String

This field contains id of the role

permissions

Array

This field contains permissions granted to the role.

principals

Array

This field contains principals.

principals[0].username

String

This field contains principals username.

principals[0].fullname

Null

This field contains principals fullname.

Create a new role

To create a single role, execute this command:

HTTP Request
POST /api/v1/roles/Testers

{
  "name" : "Testers",
  "id" : null,
  "permissions" : [ "release#create", "template#create" ],
  "principals" : [ {
    "username" : "devans",
    "fullname" : "devans Smith"
  } ]
}
Curl
$ 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"
  } ]
}'
HTTPie
$ 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:

Table 84. /api/v1/roles/{roleName}
Parameter Description

roleName

Name of the role

Request fields and their description:

Path Type Description

name

String

This field contains name of the role.

id

String

This field contains id of the role

permissions

Array

This field contains permissions granted to the role.

principals

Array

This field contains principals.

principals[0].username

String

This field contains principals username.

principals[0].fullname

String

This field contains principals fullname.

Create a list of roles

To create multiple roles, execute this command:

HTTP Request
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
$ 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"
  } ]
} ]'
HTTPie
$ 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

[]name

String

This field contains name of the role.

[]id

String

This field contains id of the role

[]permissions

Array

This field contains permissions granted to the role.

[]principals

Array

This field contains principals.

[]principals[0].username

String

This field contains principals username.

[]principals[0].fullname

String

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:

HTTP Request
PUT /api/v1/roles/Developers

{
  "id" : null,
  "permissions" : [ "release#create", "template#create" ],
  "principals" : [ {
    "username" : "devans",
    "fullname" : "devans Smith"
  } ]
}
Curl
$ 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"
  } ]
}'
HTTPie
$ 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:

Table 85. /api/v1/roles/{roleName}
Parameter Description

roleName

Name of the role

Request fields and their description:

Path Type Description

name

String

This field contains name of the role.

id

String

This field contains id of the role

permissions

Array

This field contains permissions granted to the role.

principals

Array

This field contains principals.

principals[0].username

String

This field contains principals username.

principals[0].fullname

String

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:

HTTP Request
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
$ 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"
  } ]
} ]'
HTTPie
$ 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

[]name

String

This field contains name of the role.

[]id

String

This field contains id of the role

[]permissions

Array

This field contains permissions granted to the role.

[]principals

Array

This field contains principals.

[]principals[0].username

String

This field contains principals username.

[]principals[0].fullname

String

This field contains principals fullname.

Rename role

To rename a role, execute this command:

HTTP Request
POST /api/v1/roles/Developers/rename?newName=New%20Developers
Curl
$ curl 'http://localhost:5516/api/v1/roles/Developers/rename?newName=New%20Developers' -i -X POST
HTTPie
$ http POST 'http://localhost:5516/api/v1/roles/Developers/rename?newName=New%20Developers'

with the following path parameters:

Table 86. /api/v1/roles/{roleName}/rename
Parameter Description

roleName

Name of the role

and request parameters and their description:

Parameter Description

newName

New name of the role

Delete role

To delete a role, execute this command:

HTTP Request
DELETE /api/v1/roles/Developers
Curl
$ curl 'http://localhost:5516/api/v1/roles/Developers' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/roles/Developers'

with the following path parameters:

Table 87. /api/v1/roles/{roleName}
Parameter Description

roleName

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:

HTTP Request
GET /api/v1/folders/permissions
Curl
$ curl 'http://localhost:5516/api/v1/folders/permissions' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/templates/permissions
Curl
$ curl 'http://localhost:5516/api/v1/templates/permissions' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/releases/permissions
Curl
$ curl 'http://localhost:5516/api/v1/releases/permissions' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP Request
GET /api/v1/folders/Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/teams
Curl
$ curl 'http://localhost:5516/api/v1/folders/Applications/Folder8a223f1d3b1c46d59adc8d0460581d10/teams' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

Table 88. /api/v1/folders/{folderId}/teams
Parameter Description

folderId

The folder Id

The response fields explained:

Path Type Description

[]id

String

Id of the team

[]teamName

String

Name of the team

[]members

Array

Team members. Can be roles and principals.

[]members[].name

String

Team member username.

[]members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[]members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[]members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[]permissions

Array

Names of the team permissions.

[]systemTeam

Boolean

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:

HTTP Request
GET /api/v1/templates/Applications/Releaseeefda635030d4da9b24a18be7178a3ff/teams
Curl
$ curl 'http://localhost:5516/api/v1/templates/Applications/Releaseeefda635030d4da9b24a18be7178a3ff/teams' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

Table 89. /api/v1/templates/{templateId}/teams
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

The response fields explained:

Path Type Description

[]id

String

Id of the team

[]teamName

String

Name of the team

[]members

Array

Team members. Can be roles and principals.

[]members[].name

String

Team member username.

[]members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[]members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[]members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[]permissions

Array

Names of the team permissions.

[]systemTeam

Boolean

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:

HTTP Request
GET /api/v1/releases/Applications/Release00a87de3f3454924a17bc31591067f45/teams
Curl
$ curl 'http://localhost:5516/api/v1/releases/Applications/Release00a87de3f3454924a17bc31591067f45/teams' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

Table 90. /api/v1/releases/{releaseId}/teams
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

The response fields explained:

Path Type Description

[].id

String

Id of the team

[].teamName

String

Name of the team

[].members

Array

Team members. Can be roles and principals.

[].members[].name

String

Team member username.

[].members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[].members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[].members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[].permissions

Array

Names of the team permissions.

[].systemTeam

Boolean

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:

HTTP Request
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
$ 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
} ]'
HTTPie
$ 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:

Table 91. /api/v1/folders/{folderId}/teams
Parameter Description

folderId

The folder Id

The response fields explained:

Path Type Description

[]id

String

Id of the team

[]teamName

String

Name of the team

[]members

Array

Team members. Can be roles and principals.

[]members[].name

String

Team member username.

[]members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[]members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[]members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[]permissions

Array

Names of the team permissions.

[]systemTeam

Boolean

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

HTTP Request
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
$ 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
} ]'
HTTPie
$ 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:

Table 92. /api/v1/templates/{templateId}/teams
Parameter Description

templateId

Full template identifier; for example, Applications/Release1

The response fields explained:

Path Type Description

[]id

String

Id of the team

[]teamName

String

Name of the team

[]members

Array

Team members. Can be roles and principals.

[]members[].name

String

Team member username.

[]members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[]members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[]members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[]permissions

Array

Names of the team permissions.

[]systemTeam

Boolean

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:

HTTP Request
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
$ 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
} ]'
HTTPie
$ 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:

Table 93. /api/v1/releases/{releaseId}/teams
Parameter Description

releaseId

Full identifier of the release; for example, Applications/Release1

The response fields explained:

Path Type Description

[].id

String

Id of the team

[].teamName

String

Name of the team

[].members

Array

Team members. Can be roles and principals.

[].members[].name

String

Team member username.

[].members[].fullName

Varies

Team member full name. Can be null (for roles or users with just username).

[].members[].type

String

Team member type. Can be ROLE or PRINCIPAL.

[].members[].roleId

String

Id of the role. Can be null (for member type PRINCIPAL).

[].permissions

Array

Names of the team permissions.

[].systemTeam

Boolean

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:

HTTP Request
GET /api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk
Curl
$ curl 'http://localhost:5516/api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/risks/Applications/Release162151faba694d03aa3065665cf26f21/Risk' \
    'Accept:application/json'

Using the following path parameters:

Table 94. /api/v1/risks/{releaseId}/Risk
Parameter Description

releaseId

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:

HTTP Request
GET /api/v1/risks/config
Curl
$ curl 'http://localhost:5516/api/v1/risks/config' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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:

HTTP 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
$ 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"
  }
}'
HTTPie
$ 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

Table 95. Risk Profile Assessors
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:

HTTP Request
GET /api/v1/risks/profiles
Curl
$ curl 'http://localhost:5516/api/v1/risks/profiles' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.RiskProfile'.

[].folderId

String

If set, this field contains the folder that this configuration belongs to.

[].title

String

The name of risk profile.

[].defaultProfile

Boolean

Is this default risk profile.

[].riskProfileAssessors

Object

Risk Profile Assessors

Find risk profile by ID

To find a risk profile using a specific ID, send this request:

HTTP Request
GET /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7
Curl
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile12f849e9e32b4d1485ed56242e48e7f7' \
    'Accept:application/json'

Using the following path parameters:

Table 96. /api/v1/risks/profiles/{riskProfileId}
Parameter Description

riskProfileId

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:

HTTP 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
$ 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"
  }
}'
HTTPie
$ 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:

Table 97. /api/v1/risks/profiles/{riskProfileId}
Parameter Description

riskProfileId

Full identifier of the risk profile; for example, Configuration/riskProfiles/RiskProfile150970630496129498

Request fields and their description:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.RiskProfile'.

folderId

String

If set, this field contains the folder that this configuration belongs to.

title

String

The name of risk profile.

defaultProfile

Boolean

Is this default risk profile.

riskProfileAssessors

Object

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:

HTTP Request
DELETE /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be
Curl
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfile4108b4c18d9248c7851b7a31446165be' \
    'Accept:application/json'

Using the following path parameters:

Table 98. /api/v1/risks/profiles/{riskProfileId}
Parameter Description

riskProfileId

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:

HTTP Request
POST /api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy
Curl
$ curl 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/risks/profiles/Configuration/riskProfiles/RiskProfileDefault/copy' \
    'Accept:application/json'

Using the following path parameters:

Table 99. /api/v1/risks/profiles/{riskProfileId}/copy
Parameter Description

riskProfileId

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:

HTTP Request
GET /api/v1/risks/assessors
Curl
$ curl 'http://localhost:5516/api/v1/risks/assessors' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'xlrelease.RiskAssessor'.

[].title

String

The title of the risk assessor.

[].description

String

The description of the item.

[].weight

Number

The weight of the assessor in the total calculation.

[].score

Number

Score given when assessor decides it needs scoring.

[].order

String

A value used for ordering the assessors within a risk profile.

[].group

String

Define a group to which this risk assessor belongs. Used for UI. Default is: Risk Assessors

[].icon

String

Define an icon for the risk assessor

[].minRetries

Number

Minimum amount of retries to have to score

[].maxRetries

Number

Maximum amount of retries to have to score

[].minFlags

Number

Minimum amount of flags to have to score

[].maxFlags

Number

Maximum amount of retries to have to score

[].icon

String

The css icon class of the flag

Environment management

Environments

Create a new environment

To create a new environment, send this request:

HTTP Request
POST /api/v1/environments

{
  "title" : "New environment",
  "description" : "Environment description",
  "stageId" : "Configuration/environmentManagement/EnvironmentStage0a4c27442b364c6790aa2354dcc8d657",
  "labelIds" : null
}
Curl
$ 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
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337
Curl
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment45efb564f1af4fb7970fdb1eb77de337' \
    'Accept:application/json'

Using the following path parameters:

Table 100. /api/v1/environments/{environmentId}
Parameter Description

environmentId

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:

HTTP Request
PUT /api/v1/environments/Configuration/environmentManagement/Environmentfecd427f96714513ade2f226037ca823

{
  "title" : "New environment title",
  "description" : "New description",
  "stageId" : "Configuration/environmentManagement/EnvironmentStage42642b2259764d5c9520765922015835",
  "labelIds" : [ "Configuration/environmentManagement/EnvironmentLabel70bc27fde9b1417295bccf85bb9cf820" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

Table 101. /api/v1/environments/{environmentId}
Parameter Description

environmentId

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:

HTTP Request
DELETE /api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746
Curl
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environment2d2d65a49a81431a8b1224e21d7c3746' \
    'Accept:application/json'

Using the following path parameters:

Table 102. /api/v1/environments/{environmentId}
Parameter Description

environmentId

Environment ID

The response is empty with the status code 204 if the operation was successful.

Search environments

To search environments, send this request:

HTTP Request
POST /api/v1/environments/search

{
  "title" : "Env",
  "stage" : "DEV",
  "labels" : [ "AWS" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations
Curl
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentdc6983ee2130458aa45a6cd058bdf147/reservations' \
    'Accept:application/json'

Using the following path parameters:

Table 103. /api/v1/environments/{environmentId}/reservations
Parameter Description

environmentId

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:

HTTP Request
GET /api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications
Curl
$ curl 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/Configuration/environmentManagement/Environmentf92e60d1cf3946ecb2ca142c1676fa67/applications' \
    'Accept:application/json'

Using the following path parameters:

Table 104. /api/v1/environments/{environmentId}/applications
Parameter Description

environmentId

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:

HTTP Request
POST /api/v1/environments/reservations

{
  "startDate" : 1716358913858,
  "endDate" : 1716366113858,
  "note" : "Note",
  "environmentId" : "Configuration/environmentManagement/Environment86fcd82a456d417f8d037afcd32cb21d",
  "applicationIds" : [ "Configuration/environmentManagement/Application8798cfc3460e40dd84017880c1cd77c0" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f
Curl
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservatione36ced31dd5f4c5e8f968684287b9e2f' \
    'Accept:application/json'

Using the following path parameters:

Table 105. /api/v1/environments/reservations/{environmentReservationId}
Parameter Description

environmentReservationId

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:

HTTP 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
$ 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" ]
}'
HTTPie
$ 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:

Table 106. /api/v1/environments/reservations/{environmentReservationId}
Parameter Description

environmentReservationId

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:

HTTP Request
DELETE /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac
Curl
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservationb6998a08d75844dc94efd5ff34d906ac' \
    'Accept:application/json'

Using the following path parameters:

Table 107. /api/v1/environments/reservations/{environmentReservationId}
Parameter Description

environmentReservationId

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:

HTTP Request
POST /api/v1/environments/reservations/search

{
  "environmentTitle" : "Env",
  "stages" : [ "DEV" ],
  "labels" : [ "AWS" ],
  "applications" : [ "APP1" ],
  "from" : 1716358911338,
  "to" : 1716384111338
}
Curl
$ 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
}'
HTTPie
$ 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:

HTTP Request
POST /api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec
Curl
$ curl 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/environments/reservations/Configuration/environmentManagement/EnvironmentReservation2b196bee7b414288873b173c096437eb?applicationId=Configuration/environmentManagement/Applicationadfba3a93fd042509018db85069b40ec' \
    'Accept:application/json'

Using the following path parameters:

Table 108. /api/v1/environments/reservations/{environmentReservationId}
Parameter Description

environmentReservationId

ID of the environment reservation

and request parameters and their description:

Parameter Description

applicationId

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:

HTTP Request
POST /api/v1/environments/stages

{
  "title" : "PROD1"
}
Curl
$ curl 'http://localhost:5516/api/v1/environments/stages' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
  "title" : "PROD1"
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f
Curl
$ curl 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage70be09b7c2574458a1ca10cea5d6011f' \
    'Accept:application/json'

Using the following path parameters:

Table 109. /api/v1/environments/stages/{environmentStageId}
Parameter Description

environmentStageId

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:

HTTP Request
PUT /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStage3d08e617e6574a9eab01b8709f1db3f5

{
  "title" : "TEST1"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 110. /api/v1/environments/stages/{environmentStageId}
Parameter Description

environmentStageId

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:

HTTP Request
DELETE /api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55
Curl
$ curl 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/environments/stages/Configuration/environmentManagement/EnvironmentStageb21dc3e45b7b4241bead168fa821be55' \
    'Accept:application/json'

Using the following path parameters:

Table 111. /api/v1/environments/stages/{environmentStageId}
Parameter Description

environmentStageId

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:

HTTP Request
POST /api/v1/environments/stages/search

{
  "title" : "TE"
}
Curl
$ curl 'http://localhost:5516/api/v1/environments/stages/search' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
  "title" : "TE"
}'
HTTPie
$ 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:

HTTP Request
POST /api/v1/environments/labels

{
  "title" : "Azure",
  "color" : "#11aabb"
}
Curl
$ 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"
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08
Curl
$ curl 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel45dc02939e8045f0be452c51de37bb08' \
    'Accept:application/json'

Using the following path parameters:

Table 112. /api/v1/environments/labels/{environmentLabelId}
Parameter Description

environmentLabelId

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:

HTTP Request
PUT /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabel413cf82a2299418c82230820d3424f1d

{
  "title" : "RDS",
  "color" : "#ff00ff"
}
Curl
$ 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"
}'
HTTPie
$ 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:

Table 113. /api/v1/environments/labels/{environmentLabelId}
Parameter Description

environmentLabelId

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:

HTTP Request
DELETE /api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3
Curl
$ curl 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/environments/labels/Configuration/environmentManagement/EnvironmentLabelc6fe1cf8d1a545bc8e6db3ecdf47ebf3' \
    'Accept:application/json'

Using the following path parameters:

Table 114. /api/v1/environments/labels/{environmentLabelId}
Parameter Description

environmentLabelId

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:

HTTP Request
POST /api/v1/environments/labels/search

{
  "title" : "op"
}
Curl
$ curl 'http://localhost:5516/api/v1/environments/labels/search' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '{
  "title" : "op"
}'
HTTPie
$ 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:

HTTP Request
POST /api/v1/applications

{
  "title" : "New application",
  "environmentIds" : [ "Configuration/environmentManagement/Environmentcbe72978c9c44cd7b95f8ace206c82da" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25
Curl
$ curl 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application41e76385825849be9d1ba64607f78d25' \
    'Accept:application/json'

Using the following path parameters:

Table 115. /api/v1/applications/{applicationId}
Parameter Description

applicationId

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:

HTTP Request
PUT /api/v1/applications/Configuration/environmentManagement/Applicationc5dcccc22c3e4091b43f1262077618ac

{
  "title" : "New application title",
  "environmentIds" : [ "Configuration/environmentManagement/Environment992818a7c23b48b59d1b9736e71035b2" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

Table 116. /api/v1/applications/{applicationId}
Parameter Description

applicationId

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:

HTTP Request
DELETE /api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936
Curl
$ curl 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/applications/Configuration/environmentManagement/Application285d85d13aed46579f2f2ec990a09936' \
    'Accept:application/json'

Using the following path parameters:

Table 117. /api/v1/applications/{applicationId}
Parameter Description

applicationId

Application ID

The response is empty with the status code 204 if the operation was successful.

Search applications

To search applications, send this request:

HTTP Request
POST /api/v1/applications/search

{
  "title" : "App",
  "environments" : [ "ENV1" ]
}
Curl
$ 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" ]
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/triggers?triggerTitle=new%20trigger&templateTitle=new%20template&sort=triggerTitle,asc&page=0&resultsPerPage=100
Curl
$ 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'
HTTPie
$ 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

triggerTitle

The (optional) case-insensitive title matches the part of the trigger title.

templateTitle

The (optional) case-insensitive title matches the part of the release template title.

sort

The (optional) sort column with asc or desc order

page

The (optional) page of results to return; defaults at 0.

resultsPerPage

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

totalElements

Number

The total amount of elements.

totalPages

Number

The number of total pages.

size

Number

The size of the Slice.

number

Number

The number of the current Slice.

numberOfElements

Number

The number of elements currently on this Slice.

first

Boolean

The current Slice is the first one.

last

Boolean

The current Slice is the last one.

content[].triggerId

String

This field contains ID of trigger.

content[].triggerTitle

String

The title of the trigger.

content[].description

String

The description of the trigger.

content[].triggerType

String

The type of the trigger.

content[].triggerEnabled

Boolean

The trigger is enabled.

content[].templateId

String

This field contains ID of template.

content[].templateTitle

String

The title of the template.

content[].folderId

String

This field contains ID of folder.

content[].folderTitle

String

The title of the folder

content[].lastRunDate

String

The last run date of the trigger.

content[].lastRunStatus

String

The last run status of the trigger.

Create Trigger

To create a trigger send this request:

HTTP 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
$ 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"
}'
HTTPie
$ 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

id

Null

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.ReleaseTrigger'.

title

String

Symbolic name for the trigger

description

String

The description of the trigger.

enabled

Boolean

Enabled

triggerState

String

Trigger State

folderId

String

Folder that the trigger belongs to.

allowParallelExecution

Boolean

Allows parallel execution of triggers (ie parallel processing of execute requests/scripts).

lastRunDate

String

Last run date.

lastRunStatus

String

Last run execution status.

pollType

String

Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression

periodicity

String

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

initialFire

Boolean

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

releaseTitle

String

Name given to releases created by this trigger. This field can contain variables.

executionId

String

Not in Use. Keep it for backwards compatibility.

variables

Array

Variables

template

String

Template

tags

Array

Tags

releaseFolder

String

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:

HTTP 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
$ 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'"
  }
}'
HTTPie
$ 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

id

Null

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'events.EventBasedTrigger'.

title

String

Symbolic name for the trigger

description

String

The description of the trigger.

enabled

Boolean

Enabled

triggerState

String

Trigger State

folderId

String

Folder that the trigger belongs to.

allowParallelExecution

Boolean

Allows parallel execution of triggers (ie parallel processing of execute requests/scripts).

lastRunDate

String

Last run date.

lastRunStatus

String

Last run execution status.

mappedProperties

Array

Trigger action property mappings

triggerActionType

String

The action to execute when the trigger fires

eventSource

Varies

The HTTP endpoint or the typed event source on which the trigger listens

eventType

String

The type of the event to listen for

eventFilter

Varies

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:

HTTP 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
$ 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" : "********"
}'
HTTPie
$ 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:

Table 118. /api/v1/triggers/{triggerId}
Parameter Description

triggerId

Full identifier of the trigger.

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.ReleaseTrigger'.

title

String

Symbolic name for the trigger

description

String

The description of the trigger.

enabled

Boolean

Enabled

triggerState

String

Trigger State

folderId

String

Folder that the trigger belongs to.

allowParallelExecution

Boolean

Allows parallel execution of triggers (ie parallel processing of execute requests/scripts).

lastRunDate

String

Last run date.

lastRunStatus

String

Last run execution status.

pollType

String

Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression

periodicity

String

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

initialFire

Boolean

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

releaseTitle

String

Name given to releases created by this trigger. This field can contain variables.

executionId

String

Not in Use. Keep it for backwards compatibility.

variables

Array

Variables

template

String

Template

tags

Array

Tags

releaseFolder

String

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:

HTTP Request
PUT /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable
Curl
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable' -i -X PUT
HTTPie
$ http PUT 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/enable'

Using the following path parameters:

Table 119. /api/v1/triggers/{triggerId}/enable
Parameter Description

triggerId

Full identifier of the trigger.

To enable multiple triggers, send this request:

HTTP Request
POST /api/v1/triggers/enable

[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]
Curl
$ curl 'http://localhost:5516/api/v1/triggers/enable' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]'
HTTPie
$ 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

updatedIds

Array

This fields contains IDs of updated triggers.

To enable multiple triggers which user has access to, send this request:

HTTP Request
POST /api/v1/triggers/enable/all
Curl
$ curl 'http://localhost:5516/api/v1/triggers/enable/all' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ 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

updatedIds

Array

This fields contains IDs of updated triggers.

Disable Trigger

To disable trigger, send this request:

HTTP Request
PUT /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable
Curl
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable' -i -X PUT
HTTPie
$ http PUT 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/disable'

Using the following path parameters:

Table 120. /api/v1/triggers/{triggerId}/disable
Parameter Description

triggerId

Full identifier of the trigger.

To disable multiple triggers, send this request:

HTTP Request
POST /api/v1/triggers/disable

[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]
Curl
$ curl 'http://localhost:5516/api/v1/triggers/disable' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d '[ "Applications/Folder01345a690c16b345168751d62934e912/Trigger321" ]'
HTTPie
$ 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

updatedIds

Array

This fields contains IDs of updated triggers.

To disable multiple triggers which user has access to, send this request:

HTTP Request
POST /api/v1/triggers/disable/all
Curl
$ curl 'http://localhost:5516/api/v1/triggers/disable/all' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ 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

updatedIds

Array

This fields contains IDs of updated triggers.

Delete Trigger

To delete trigger, send this request:

HTTP Request
DELETE /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321
Curl
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321'

Using the following path parameters:

Table 121. /api/v1/triggers/{triggerId}
Parameter Description

triggerId

Full identifier of the trigger.

Execute Trigger

To execute trigger, send this request:

HTTP Request
POST /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run
Curl
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321/run' \
    'Accept:application/json'

Using the following path parameters:

Table 122. /api/v1/triggers/{triggerId}/run
Parameter Description

triggerId

Full identifier of the trigger.

Get Trigger

To find a trigger using a specific trigger ID, send this request:

HTTP Request
GET /api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321
Curl
$ curl 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/triggers/Applications/Folder01345a690c16b345168751d62934e912/Trigger321' \
    'Accept:application/json'

Using the following path parameters:

Table 123. /api/v1/triggers/{triggerId}
Parameter Description

triggerId

Full identifier of the trigger.

All the fields in the response and their description:

Path Type Description

id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

type

String

This field represents type of 'xlrelease.ReleaseTrigger'.

title

String

Symbolic name for the trigger

description

String

The description of the trigger.

enabled

Boolean

Enabled

triggerState

String

Trigger State

folderId

String

Folder that the trigger belongs to.

allowParallelExecution

Boolean

Allows parallel execution of triggers (ie parallel processing of execute requests/scripts).

lastRunDate

String

Last run date.

lastRunStatus

String

Last run execution status.

pollType

String

Type of polling to use; this is a repeatable period in seconds (for example, every 10 seconds) or a cron expression

periodicity

String

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

initialFire

Boolean

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

releaseTitle

String

Name given to releases created by this trigger. This field can contain variables.

executionId

String

Not in Use. Keep it for backwards compatibility.

variables

Array

Variables

template

String

Template

tags

Array

Tags

releaseFolder

String

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

HTTP Request
GET /api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliverydbd5361addc041efb379b3abb4511c09' \
    'Accept:application/json'

Using the following path parameters:

Table 124. /api/v1/delivery-patterns/{patternId}
Parameter Description

patternId

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:

HTTP Request
GET /api/v1/delivery-patterns/Test%20pattern
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Test%20pattern' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Test%20pattern' \
    'Accept:application/json'

Using the following path parameters:

Table 125. /api/v1/delivery-patterns/{patternIdOrTitle}
Parameter Description

patternIdOrTitle

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 126. /api/v1/delivery-patterns/{patternId}
Parameter Description

patternId

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:

HTTP Request
DELETE /api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery786c7f5da3e24c39bbe49e8159e1e10e'

Using the following path parameters:

Table 127. /api/v1/delivery-patterns/{patternId}
Parameter Description

patternId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 128. /api/v1/delivery-patterns/{patternId}/create
Parameter Description

patternId

The id of the pattern

Path Type Description

folderId

String

The folder ID where the delivery will be stored

title

String

The title of the delivery

description

String

The description of the delivery

duration

Number

The duration of the delivery. Will be used only if start and end date are null

startDate

Number

The start date of the delivery

endDate

Number

The end date of the delivery

autoComplete

Boolean

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:

HTTP Request
POST /api/v1/delivery-patterns/search?page=0&resultsPerPage=100

{
  "title" : "Test",
  "strictTitleMatch" : false,
  "trackedItemTitle" : "",
  "strictTrackedItemTitleMatch" : false,
  "folderId" : "Applications/Folder01345a690c16b345168751d62934e912"
}
Curl
$ 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"
}'
HTTPie
$ 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

title

String

Case-insensitive matches the part of the pattern title

strictTitleMatch

Boolean

Set to true to exact match the pattern title (case-insensitive)

folderId

String

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 129. /api/v1/delivery-patterns/{patternId}/stages/{position}
Parameter Description

patternId

The id of the pattern

position

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:

HTTP Request
GET /api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Deliveryd27bec0123d8493090ceb3ea967d9a4b/stages' \
    'Accept:application/json'

Using the following path parameters:

Table 130. /api/v1/delivery-patterns/{patternId}/stages
Parameter Description

patternId

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 131. /api/v1/delivery-patterns/{stageId}
Parameter Description

stageId

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:

HTTP Request
DELETE /api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery3c4d907078e945bc9bd54ae8757c2e1d/Stagea7df7b8ad4674ee88be9a932be9c4c6c'

Using the following path parameters:

Table 132. /api/v1/delivery-patterns/{stageId}
Parameter Description

stageId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 133. /api/v1/delivery-patterns/{stageId}/transitions
Parameter Description

stageId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 134. /api/v1/delivery-patterns/{transitionId}
Parameter Description

transitionId

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:

HTTP Request
DELETE /api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery43c781492d3a456abad5b4b9a540c91a/Stage33036d85bbba4bdeaa0a4191f674fa91/Transition940a2c8b865048cf8c6965ce5e62c35c'

Using the following path parameters:

Table 135. /api/v1/delivery-patterns/{transitionId}
Parameter Description

transitionId

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:

HTTP Request
POST /api/v1/delivery-patterns/Deliveries/Deliveryfdd3eb049f62479a8bf8e5d4fe9cab08/tracked-items

{
  "id" : "704483675",
  "type" : "delivery.TrackedItem",
  "title" : "Item A",
  "releaseIds" : [ ],
  "descoped" : false
}
Curl
$ 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
}'
HTTPie
$ 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:

Table 136. /api/v1/delivery-patterns/{patternId}/tracked-items
Parameter Description

patternId

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:

HTTP Request
GET /api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery7c55a36b00b8415480bc38cc9779211c/tracked-items' \
    'Accept:application/json'

Using the following path parameters:

Table 137. /api/v1/delivery-patterns/{patternId}/tracked-items
Parameter Description

patternId

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 138. /api/v1/delivery-patterns/{itemId}
Parameter Description

itemId

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:

HTTP Request
DELETE /api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4
Curl
$ curl 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/delivery-patterns/Deliveries/Delivery19802a50d34741e4b82fd964d68752f5/TrackedItem4a2d7a26c9c646db92a31f5f7bcfd8e4' \
    'Accept:application/json'

Using the following path parameters:

Table 139. /api/v1/delivery-patterns/{itemId}
Parameter Description

itemId

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:

HTTP Request
GET /api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4af2939ae149478b193975c79a71e5' \
    'Accept:application/json'

Using the following path parameters:

Table 140. /api/v1/deliveries/{deliveryId}
Parameter Description

deliveryId

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:

HTTP 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
$ 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
}'
HTTPie
$ 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:

Table 141. /api/v1/deliveries/{deliveryId}
Parameter Description

deliveryId

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:

HTTP Request
DELETE /api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d' -i -X DELETE
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryfbea9b58d1204877b0c050352a1b823d'

Using the following path parameters:

Table 142. /api/v1/deliveries/{deliveryId}
Parameter Description

deliveryId

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:

HTTP 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
$ 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" ]
}'
HTTPie
$ 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

title

String

Case-insensitive matches the part of the delivery title

strictTitleMatch

Boolean

Set to true to exact match the delivery title (case-insensitive)

folderId

String

ID of the folder containing the deliveries

originPatternId

String

ID of the delivery pattern the deliveries were created from

statuses

Array

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:

HTTP Request
GET /api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery3167a42fed714a24a3716289a6ad1159/releases' \
    'Accept:application/json'

Using the following path parameters:

Table 143. /api/v1/deliveries/{deliveryId}/releases
Parameter Description

deliveryId

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

String

ID of the release

[].title

String

Title of the release

[].status

String

Status of the release

[].startDate

Number

Start date of the release

[].endDate

Number

End date of the release

[].archived

Boolean

Is release archived

Create a tracked item

To create a tracked item in a delivery, send this request:

HTTP Request
POST /api/v1/deliveries/Deliveries/Deliveryeb8ef211d45149d2aac1e76f65067328/tracked-items

{
  "id" : "1712656992",
  "type" : "delivery.TrackedItem",
  "title" : "Item A",
  "releaseIds" : [ ],
  "descoped" : false
}
Curl
$ 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
}'
HTTPie
$ 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:

Table 144. /api/v1/deliveries/{deliveryId}/tracked-items
Parameter Description

deliveryId

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:

HTTP Request
GET /api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery6305e68a186549a5b3d90811b263a1ff/tracked-items' \
    'Accept:application/json'

Using the following path parameters:

Table 145. /api/v1/deliveries/{deliveryId}/tracked-items
Parameter Description

deliveryId

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:

HTTP 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
$ 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"
}'
HTTPie
$ 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:

Table 146. /api/v1/deliveries/{itemId}
Parameter Description

itemId

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:

HTTP Request
DELETE /api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564' -i -X DELETE \
    -H 'Accept: application/json'
HTTPie
$ http DELETE 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliverya2f514cfd926467ebbb967bd8c32e34c/TrackedItemabe8f4de4f264b4782a5d27c7c0f2564' \
    'Accept:application/json'

Using the following path parameters:

Table 147. /api/v1/deliveries/{itemId}
Parameter Description

itemId

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:

HTTP Request
PUT /api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope' -i -X PUT \
    -H 'Accept: application/json'
HTTPie
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery843f17cb1889454fb0dcd327fe68faef/TrackedIteme290416abac241cdaba5973433893bdd/descope' \
    'Accept:application/json'

Using the following path parameters:

Table 148. /api/v1/deliveries/{itemId}/descope
Parameter Description

itemId

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:

HTTP Request
PUT /api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope' -i -X PUT \
    -H 'Accept: application/json'
HTTPie
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Deliveryd1ea256f27cf40eba798ab4b4ec42909/TrackedItemf7f424e3bcd64fe684e38dfcbc263a1e/rescope' \
    'Accept:application/json'

Using the following path parameters:

Table 149. /api/v1/deliveries/{itemId}/rescope
Parameter Description

itemId

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:

HTTP Request
PUT /api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete' -i -X PUT \
    -H 'Accept: application/json'
HTTPie
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/Stage1307b13b1d474a25a73c6bce031d7389/Deliveries/Delivery21feb38f6e8c45d7b550c96b8d37a130/TrackedItema62598634f824b32bbaec783ada803d0/complete' \
    'Accept:application/json'

Using the following path parameters:

Table 150. /api/v1/deliveries/{stageId}/{itemId}/complete
Parameter Description

stageId

The full id of the stage

itemId

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:

HTTP Request
PUT /api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip' -i -X PUT \
    -H 'Accept: application/json'
HTTPie
$ http PUT 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/Stagecfa9637de658475ea87cc6c46b0eb2e7/Deliveries/Delivery65096718cd1b4440bb7ee9755dcc6df7/TrackedItemc797ec2b98044c3081cd53ac4f015b2e/skip' \
    'Accept:application/json'

Using the following path parameters:

Table 151. /api/v1/deliveries/{stageId}/{itemId}/skip
Parameter Description

stageId

The full id of the stage

itemId

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:

HTTP Request
POST /api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery1b4433e845b541c1afbd5ad56dd30cf7/Stage67f2132727eb483aa76bda777e913fe7/complete' \
    'Accept:application/json'

Using the following path parameters:

Table 152. /api/v1/deliveries/{stageId}/complete
Parameter Description

stageId

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:

HTTP Request
POST /api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen
Curl
$ curl 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen' -i -X POST \
    -H 'Accept: application/json'
HTTPie
$ http POST 'http://localhost:5516/api/v1/deliveries/Deliveries/Delivery8e40237f057b4337bd3cd821709d89f8/Stage59c9ca89fdbb46b1bc1d76555529201a/reopen' \
    'Accept:application/json'

Using the following path parameters:

Table 153. /api/v1/deliveries/{stageId}/reopen
Parameter Description

stageId

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:

HTTP Request
POST /api/v1/deliveries/Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/Stage304aabf988f140199a91c4a9470856c9/Transition656b587393af4e6ca6726c841f2c54e8/complete

{
  "transitionItems" : [ "Deliveries/Delivery0b73951850b64cd28e128968c50a9f4c/TrackedIteme842796bdb3e448dba0b3c22b6492054" ],
  "closeStages" : true
}
Curl
$ 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
}'
HTTPie
$ 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:

Table 154. /api/v1/deliveries/{transitionId}/complete
Parameter Description

transitionId

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:

HTTP Request
GET /api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/activities/Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/json'

Using the following path parameters:

Table 155. /api/v1/activities/{releaseId}
Parameter Description

releaseId

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

[].id

String

This field contains ID of activity log.

[].type

String

This field represents type of 'xlrelease.ActivityLogEntry'.

[].username

String

The username. Blank if event is generated by SYSTEM.

[].activityType

String

The type of activity.

[].message

String

Environment description

[].eventTime

String

The time of activity.

[].targetType

String

This field represents type of target.

[].targetId

String

This field contains ID of target.

Delivery Activity Logs

To get activity logs for delivery or pattern, send this request:

HTTP Request
GET /api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81
Curl
$ curl 'http://localhost:5516/api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/activities/Deliveries/Deliverycc0dadc6bff14c49801e69cfdc538f81' \
    'Accept:application/json'

Using the following path parameters:

Table 156. /api/v1/activities/{deliveryId}
Parameter Description

deliveryId

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:

HTTP Request
GET /api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f
Curl
$ curl 'http://localhost:5516/api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/activities/Applications/Triggera141c0a6e641454084ae761194ab6c3f' \
    'Accept:application/json'

Using the following path parameters:

Table 157. /api/v1/activities/{triggerId}
Parameter Description

triggerId

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:

HTTP Request
GET /api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/octet-stream'
HTTPie
$ http GET 'http://localhost:5516/api/v1/reports/download/xlrelease.ReleaseAuditExcelReport/Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/octet-stream'

Using the following parameter:

Table 158. /api/v1/reports/download/{reportType}/{releaseId}
Parameter Description

reportType

Synthetic type of the release report; for example, xlrelease.ReleaseAuditExcelReport

releaseId

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

Table 159. Task Reporting 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

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'udm.BuildRecord'.

[].targetId

String

The ID of the CI that the facet is applied to.

[].variableMapping

Object

Variable Mapping

[].serverUrl

String

Server base URL used to fetch data.

[].serverUser

String

Username used to authenticate to the server when fetching data.

[].creationDate

String

Timestamp of when this record was created.

[].project

String

The project name.

[].build

String

The ID of the build.

[].outcome

String

Result of the build.

[].startDate

String

Start date of the build.

[].endDate

String

End date of the build.

[].duration

String

Duration of the build.

[].build_url

String

Link to the job build.

Fields in udm.CodeComplianceRecord
Path Type Description

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'udm.CodeComplianceRecord'.

[].targetId

String

The ID of the CI that the facet is applied to.

[].variableMapping

Object

Variable Mapping

[].serverUrl

String

Server base URL used to fetch data.

[].serverUser

String

Username used to authenticate to the server when fetching data.

[].creationDate

String

Timestamp of when this record was created.

[].project

String

The project name.

[].project_url

String

URL for the project.

[].analysisDate

String

Date of the analysis.

[].outcome

String

Result of the analysis.

[].complianceData

String

The compliance data.

Fields in udm.DeploymentRecord
Path Type Description

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'udm.DeploymentRecord'.

[].targetId

String

The ID of the CI that the facet is applied to.

[].variableMapping

Object

Variable Mapping

[].serverUrl

String

Server base URL used to fetch data.

[].serverUser

String

Username used to authenticate to the server when fetching data.

[].creationDate

String

Timestamp of when this record was created.

[].deploymentTask

String

The deployment.

[].deploymentTask_url

String

The URL of the deployment.

[].applicationName

String

The name of the application whose version is being deployed.

[].version

String

The version of the application.

[].environmentName

String

The name of the environment where this task deploys to.

[].status

String

The status of the deployment.

Fields in udm.ItsmRecord
Path Type Description

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'udm.ItsmRecord'.

[].targetId

String

The ID of the CI that the facet is applied to.

[].variableMapping

Object

Variable Mapping

[].serverUrl

String

Server base URL used to fetch data.

[].serverUser

String

Username used to authenticate to the server when fetching data.

[].creationDate

String

Timestamp of when this record was created.

[].record

String

Unique identifier in ITSM.

[].record_url

String

Link to the record in ITSM.

[].title

String

Title of the record in ITSM.

[].status

String

Status of the record.

[].priority

String

Priority of the record.

[].createdBy

String

Record created by.

Fields in udm.PlanRecord
Path Type Description

[].id

String

This field contains ID of object. It is required but not used on update operations. When creating objects just send 'null'.

[].type

String

This field represents type of 'udm.PlanRecord'.

[].targetId

String

The ID of the CI that the facet is applied to.

[].variableMapping

Object

Variable Mapping

[].serverUrl

String

Server base URL used to fetch data.

[].serverUser

String

Username used to authenticate to the server when fetching data.

[].creationDate

String

Timestamp of when this record was created.

[].ticket

String

Ticket ID.

[].title

String

Issue title.

[].ticketType

String

Ticket type.

[].status

String

Status of the ticket.

[].updatedDate

String

Date and time of last update.

[].updatedBy

String

Person who performed the last update.

[].ticket_url

String

Link to the ticket.

List all records

Get all records for a release

To get task reporting records for a release, send this request:

HTTP Request
GET /api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21
Curl
$ curl 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21' \
    'Accept:application/json'

Using the following path parameters:

Table 160. /api/v1/reports/records/{releaseId}
Parameter Description

releaseId

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:

HTTP Request
GET /api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726
Curl
$ curl 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' -i -X GET \
    -H 'Accept: application/json'
HTTPie
$ http GET 'http://localhost:5516/api/v1/reports/records/Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task97c27091a9b342599e1b631dc6d44726' \
    'Accept:application/json'

Using the following path parameters:

Table 161. /api/v1/reports/records/{taskId}
Parameter Description

taskId

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:

HTTP Request
POST /api/v1/reports/records/search

{
  "parentId" : "Applications/Release162151faba694d03aa3065665cf26f21",
  "targetId" : "Applications/Release162151faba694d03aa3065665cf26f21/Phase520d9bb734c8490cad6818f736da7a5e/Task31a0974f90b8450c98dbeef993f53667",
  "types" : [ ]
}
Curl
$ 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" : [ ]
}'
HTTPie
$ 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

parentId

String

Full identifier of the release; for example, Applications/Folder1/Release1 (Optional if targetId specified)

targetId

String

Full identifier of the task; for example, Applications/Folder1/Release1/Phase1/Task1 (Optional if parentId specified)

types

Array

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.

HTTP Request
GET /api/v1/plugin-manager/list
Curl
$ curl 'http://localhost:5516/api/v1/plugin-manager/list' -i -X GET
HTTPie
$ 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

[].hasLogo

Boolean

Whether if plugin has logo

[].status

String

Status of plugin in system. Possible values: AVAILABLE, READY_FOR_INSTALL, INSTALLED

[].metadata.author

String

Author of the plugin

[].metadata.categories

Array

Category of the plugin

[].metadata.description

String

Plugin description

[].metadata.features

Array

List of plugin features

[].metadata.maturity

String

Plugin maturity. Possible values: Incubating, Mature, Deprecated

[].metadata.name

String

Official plugin name

[].metadata.screenshots

Array

Screenshots of the plugin

[].metadata.supportedBy

String

Plugin created and supported by

[].metadata.links[].name

String

Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name

[].metadata.links[].url

String

Link URL

[].metadata.screenshots[].name

String

Plugin can have screenshots associated to them. This field contains the screenshots name

[].metadata.screenshots[].url

String

Screenshot URL

[].metadata.requirements.product

String

Digital.Ai product to which the plugin belongs

[].metadata.requirements.versions

Array

Digital.Ai product version which is required for plugin

[].plugin.artifactId

String

The name of artifact on the Nexus repository

[].plugin.groupId

String

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__)

[].versions[].repository

String

Plugin repository identifier

[].versions[].version

String

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

HTTP Request
GET /api/v1/plugin-manager/repositories
Curl
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories' -i -X GET
HTTPie
$ 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

[].lastUpdated

Number

Timestamp of the latest download of this repository metadata

[].repositoryId

String

Repository identifier

[].repositoryType

String

Type of repository used by the plugin manager. Possible values: 'nexus', 'unknown'

[].config.nexus-group-id

String

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__)

[].config.nexus-packaging-type

String

XLR can only use repositories that have 'jar' packaging, so this will always have 'jar' value

[].config.repository-id

String

Repository identifier

[].config.repository-type

String

XLR only supports fetching repository metadata from Nexus by providing groupId and artifactId, so this field will always have 'nexus-by-group-id' value

[].config.nexus-metadata-artifact.artifact-id

String

The name of artifact on the Nexus repository

[].config.nexus-metadata-artifact.group-id

String

Group id of the metadata file

[].config.server.server-type

String

Type of repository server

[].config.server.url

String

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).

HTTP Request
GET /api/v1/plugin-manager/repositories/xlr-official/list
Curl
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/list' -i -X GET
HTTPie
$ http GET 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/list'
Table 162. /api/v1/plugin-manager/repositories/{repositoryId}/list
Parameter Description

repositoryId

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

[].hasLogo

Boolean

Whether if plugin has logo

[].metadata.author

String

Author of the plugin

[].metadata.categories

Array

Category of the plugin

[].metadata.description

String

Plugin description

[].metadata.features

Array

List of plugin features

[].metadata.maturity

String

Plugin maturity. Possible values: Incubating, Mature, Deprecated

[].metadata.name

String

Official plugin name

[].metadata.screenshots

Array

Screenshots of the plugin

[].metadata.supportedBy

String

Plugin created and supported by

[].metadata.links[].name

String

Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name

[].metadata.links[].url

String

Link URL

[].metadata.screenshots[].name

String

Plugin can have screenshots associated to them. This field contains the screenshots name

[].metadata.screenshots[].url

String

Screenshot URL

[].metadata.requirements.product

String

Digital.Ai product to which the plugin belongs

[].metadata.requirements.versions

Array

Digital.Ai product version which is required for plugin

[].plugin.artifactId

String

The name of artifact on the Nexus repository

[].plugin.groupId

String

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__)

[].versions[].repository

String

Plugin repository identifier

[].versions[].version

String

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.

HTTP Request
POST /api/v1/plugin-manager/repositories/xlr-official/install/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0
Curl
$ 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'
HTTPie
$ 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

message

String

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.

HTTP Request
POST /api/v1/plugin-manager/repositories/xlr-official/update/com.xebialabs.xlrelease.plugins/another-test-plugin
Curl
$ 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'
HTTPie
$ 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

message

String

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

pluginId

Plugin filename; for example, xlr-git-plugin-9.2.0.jar

HTTP Request
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
$ 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--'
HTTPie
$ 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

message

String

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

existingPluginName

Plugin name, e.g. xlr-git-plugin

newPluginId

Plugin filename, e.g. xlr-git-plugin-9.2.0.jar

HTTP Request
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
$ 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--'
HTTPie
$ 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

message

String

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.

HTTP Request
DELETE /api/v1/plugin-manager/delete/xlr-official/com.xebialabs.xlrelease.plugins/another-test-plugin/10.1.0
Curl
$ 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'
HTTPie
$ 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'
Table 163. /api/v1/plugin-manager/delete/{repositoryId}/{groupId}/{artifactId}/{version}
Parameter Description

repositoryId

The Nexus repository ID on which plugin is accessible (in case of 3rd party plugins it should be __local__); for example, xlr-official

groupId

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__); for example, com.xebialabs.xlrelease.plugins

artifactId

The name of artifact on the Nexus repository; for example, xlr-plugin

version

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.

HTTP Request
POST /api/v1/plugin-manager/repositories/xlr-official/update
Curl
$ 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'
HTTPie
$ 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

lastDownloaded

String

Timestamp of the last metadata download from Nexus. Not to be confused with the timestamp the metadata was last updated on Nexus.

Gets the plugin logo.

HTTP Request
GET /api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin
Curl
$ curl 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin' -i -X GET
HTTPie
$ http GET 'http://localhost:5516/api/v1/plugin-manager/repositories/xlr-official/logo/com.xebialabs.xlrelease.plugins/test-plugin'
Table 164. /api/v1/plugin-manager/repositories/{repositoryId}/logo/{groupId}/{artifactId}
Parameter Description

repositoryId

The Nexus repository ID on which plugin is accessible (in case of 3rd party plugins it should be __local__); for example, xlr-official

groupId

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__); for example, com.xebialabs.xlrelease.plugins

artifactId

The name of artifact on the Nexus repository; for example, xlr-plugin

A response is the plugin logo.

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:

  1. xlr-official:com.xebialabs.xlrelease.plugins:xlr-ansible-plugin-10.3.0.jar

  2. xlr-official:com.xebialabs.xlrelease.plugins:xlr-blackduck-plugin-10.3.0.jar

  3. local:local:my-local-plugin.jar

Search criteria Results

xlr-official

1, 2

ansible

1

xlr

1, 2

.jar

1, 2, 3

plugins:xlr

1, 2

HTTP Request
GET /api/v1/plugin-manager/search/test
Curl
$ curl 'http://localhost:5516/api/v1/plugin-manager/search/test' -i -X GET
HTTPie
$ http GET 'http://localhost:5516/api/v1/plugin-manager/search/test'
Table 165. /api/v1/plugin-manager/search/{query}
Parameter Description

query

Query string

Path Type Description

[].hasLogo

Boolean

Whether if plugin has logo

[].metadata.author

String

Author of the plugin

[].metadata.categories

Array

Category of the plugin

[].metadata.description

String

Plugin description

[].metadata.features

Array

List of plugin features

[].metadata.maturity

String

Plugin maturity. Possible values: Incubating, Mature, Deprecated

[].metadata.name

String

Official plugin name

[].metadata.screenshots

Array

Screenshots of the plugin

[].metadata.supportedBy

String

Plugin created and supported by

[].metadata.links[].name

String

Plugin can have usage or help (or any other kind) links associated to them. This field contains the link name

[].metadata.links[].url

String

Link URL

[].metadata.screenshots[].name

String

Plugin can have screenshots associated to them. This field contains the screenshots name

[].metadata.screenshots[].url

String

Screenshot URL

[].metadata.requirements.product

String

Digital.Ai product to which the plugin belongs

[].metadata.requirements.versions

Array

Digital.Ai product version which is required for plugin

[].plugin.artifactId

String

The name of artifact on the Nexus repository

[].plugin.groupId

String

The coordinates of plugin on the Nexus repository (in case of 3rd party plugins it should be __local__)

[].versions[].repository

String

Plugin repository identifier

[].versions[].version

String

Plugin version