Skip to content

Releases

The /releases endpoint provides read-only access to releases. Releases function similarly to branches in a version control system, allowing you to manage different versions of instance metadata within a release group.

See Also

GET /api/v1/releases — Find Releases

Retrieve a list of releases, optionally filtered by release group, name, or status.

Endpoint

GET https://app.metakraftwerk.com/api/v1/releases

Query Parameters

ParameterTypeRequiredDescription
groupstringNoFilter by release group name.
group_idintegerNoFilter by release group ID.
namestringNoFilter by release name.
closedbooleanNoFilter by closed status (true or false).

Response Schema

Returns an array of release objects:

FieldTypeDescription
idintegerUnique release ID.
group_idintegerRelease group ID.
namestringRelease name.
descriptionstringRelease description.
start_datestringISO 8601 start date.
end_datestringISO 8601 end date.
closedbooleanWhether the release is closed.
deletedbooleanWhether the release is marked as deleted.
hotfix_of_idintegerID of the release this is a hotfix of (if applicable).
prev_release_idintegerID of the previous release in sequence (if applicable).

Examples

cURL

bash
# List all releases
curl -X GET "https://app.metakraftwerk.com/api/v1/releases" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# Find by release group name
curl -X GET "https://app.metakraftwerk.com/api/v1/releases?group=DWH_GROUP" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# Find open releases
curl -X GET "https://app.metakraftwerk.com/api/v1/releases?closed=false" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# Find by name
curl -X GET "https://app.metakraftwerk.com/api/v1/releases?name=R1" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

# Combine filters
curl -X GET "https://app.metakraftwerk.com/api/v1/releases?group=DWH_GROUP&closed=false" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

JavaScript (Fetch)

javascript
const response = await fetch(
  'https://app.metakraftwerk.com/api/v1/releases?name=R1',
  { headers: { 'Authorization': `Bearer ${accessToken}` } }
);

const releases = await response.json();

Response Example

json
[
  {
    "id": 21,
    "group_id": 1,
    "name": "R1",
    "description": "First release",
    "start_date": "2022-01-01T23:00:00.000Z",
    "end_date": "2022-01-07T23:00:00.000Z",
    "closed": false,
    "deleted": false,
    "hotfix_of_id": null,
    "prev_release_id": null
  }
]

Error Responses

StatusConditionExample Message
401Missing or invalid tokenNot authenticated
404Release group not foundA release group with the name 'X' does not exist!

GET /api/v1/releases/:id — Get Release

Retrieve a single release by its ID.

Endpoint

GET https://app.metakraftwerk.com/api/v1/releases/:id

Path Parameters

ParameterTypeRequiredDescription
idintegerYesThe release ID.

Examples

cURL

bash
curl -X GET "https://app.metakraftwerk.com/api/v1/releases/21" \
  -H "Authorization: Bearer $ACCESS_TOKEN"

JavaScript (Fetch)

javascript
const response = await fetch(
  'https://app.metakraftwerk.com/api/v1/releases/21',
  { headers: { 'Authorization': `Bearer ${accessToken}` } }
);

const release = await response.json();

Error Responses

StatusConditionExample Message
401Missing or invalid tokenNot authenticated
404Release not foundNo record found for id 'X'

POST /api/v1/releases — Create

Not implemented

PUT /api/v1/releases — Update

Not implemented

PATCH /api/v1/releases/:id — Patch

Not implemented

DELETE /api/v1/releases/:id — Remove

Not implemented