Releases
Create a release
PUT
Creates the release named by version if it doesn't exist yet and adds the project to it. ref is the commit the release was built from. The openperf releases create command calls this endpoint. Needs a token that can write.
header
AuthorizationBearer <opaque>Organization API token (opt_…)
version*stringMatch
^[^\s/]+$Length
1 <= length <= 200projectId*stringMatch
^[\w-]+$Length
length <= 64application/json- body
version?stringMatch
^[^\s/]+$Length
1 <= length <= 200ref?|Length
1 <= length <= 255application/json- response
id*stringversion*stringurl*string|nullreleasedAt*|Format
date-timecreatedAt*stringFormat
date-timestatus*ReleaseStatusValue in
"pending""healthy""degraded""regressed"current*previous*|nullfirstSeenAt*|Format
date-timelastSeenAt*|Format
date-timeadoption*array<integer>projects*array<>previousRelease*|nullcurl -X PUT 'https://api.example.com/api/v1/releases/by-version/string/projects/string' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"id": "string",
"version": "string",
"url": "string",
"releasedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"status": "pending",
"current": {
"transactions": 0,
"errors": 0,
"failureRate": 0,
"errorsPerK": 0,
"newIssues": 0
},
"previous": {
"transactions": 0,
"errors": 0,
"failureRate": 0,
"errorsPerK": 0,
"newIssues": 0
},
"firstSeenAt": "2019-08-24T14:15:22Z",
"lastSeenAt": "2019-08-24T14:15:22Z",
"adoption": [
0
],
"projects": [
{
"id": "string",
"projectId": "string",
"version": "string",
"previousVersion": "string",
"ref": "string",
"status": "pending",
"current": {
"transactions": 0,
"errors": 0,
"failureRate": 0,
"errorsPerK": 0,
"newIssues": 0
},
"previous": {
"transactions": 0,
"errors": 0,
"failureRate": 0,
"errorsPerK": 0,
"newIssues": 0
},
"firstSeenAt": "2019-08-24T14:15:22Z",
"lastSeenAt": "2019-08-24T14:15:22Z",
"adoption": [
0
]
}
],
"previousRelease": {
"id": "string",
"version": "string"
}
}