Operations with Specific BuildBundle
This resource provides operations with sets of builds.
Resource |
|
---|---|
Returned entity | BuildBundle. For the description of the entity attributes, see Supported Fields section. |
Supported methods |
|
Represents a set of builds in YouTrack.
Below you can find the list of resources that let you work with this entity.
Extends BaseBundle
This table describes attributes of the BuildBundle
entity.
To receive an attribute in the response from the server, specify it explicitly in the
fields
request parameter.To update an attribute, provide it in the body of a POST request.
Field | Type | Description |
---|---|---|
id | String | The ID of the set of builds. |
values | Collection of builds that this bundle contains. | |
isUpdateable | Boolean | If |
Read a set of builds with the specific ID.
Requires read or update access to one of the fields where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.
GET /api/admin/customFieldSettings/bundles/build/{bundleID}?{fields}
{bundleID} | Database ID of the bundle. |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/build/95-10?fields=name,id,values(name,id,description,ordinal,hasRunningJob,assembleDate),isUpdateable
{
"values": [
{
"assembleDate": 1551265655000,
"description": "Alpha",
"ordinal": 1,
"name": "11111.3.2342",
"hasRunningJob": false,
"id": "135-9",
"$type": "BuildBundleElement"
},
{
"assembleDate": 1555385700000,
"description": "RC1",
"ordinal": 0,
"name": "11112.3.6528",
"hasRunningJob": false,
"id": "135-10",
"$type": "BuildBundleElement"
},
{
"assembleDate": 1554440460000,
"description": null,
"ordinal": 2,
"name": "11111.4.7644",
"hasRunningJob": false,
"id": "135-13",
"$type": "BuildBundleElement"
}
],
"name": "Base Builds",
"isUpdateable": true,
"id": "95-10",
"$type": "BuildBundle"
}
Update the specific set of builds.
Requires Update Project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.
POST /api/admin/customFieldSettings/bundles/build/{bundleID}?{fields}
{bundleID} | Database ID of the bundle. |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/build/95-10?fields=name,id,values(name,id,description,ordinal,hasRunningJob,assembleDate),isUpdateable
{
"values": [
{
"name": "11112.4.4744",
"description": "RC2",
"assembleDate": 1556709720000,
"$type": "BuildBundleElement"
},
{
"name": "11112.4.6526",
"description": "RC3 (public)",
"assembleDate": 1557408600000,
"$type": "BuildBundleElement"
}
]
}
{
"values": [
{
"assembleDate": 1556709720000,
"description": "RC2",
"ordinal": 1,
"name": "11112.4.4744",
"hasRunningJob": false,
"id": "135-14",
"$type": "BuildBundleElement"
},
{
"assembleDate": 1557408600000,
"description": "RC3 (public)",
"ordinal": 0,
"name": "11112.4.6526",
"hasRunningJob": false,
"id": "135-15",
"$type": "BuildBundleElement"
}
],
"name": "Base Builds",
"isUpdateable": true,
"id": "95-10",
"$type": "BuildBundle"
}
Delete a set of builds with the specific ID.
Requires Update Project permission in all projects where the bundle is used. If the bundle is not used in any field, Update Project permission is required in at least one project.
DELETE /api/admin/customFieldSettings/bundles/build/{bundleID}
{bundleID} | Database ID of the bundle. |
---|
Parameter | Type | Description |
---|---|---|
fields | String | A list of BuildBundle attributes that should be returned in the response. If no field is specified, only the |
https://example.youtrack.cloud/api/admin/customFieldSettings/bundles/build/95-11