Skip to Content
OpenPerf

Releases

Create a release

PUT
/api/v1/releases/by-version/{version}/projects/{projectId}

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.

Authorization

headerAuthorizationBearer <opaque>

Organization API token (opt_…)

Path Parameters

version*string
Match^[^\s/]+$
Length1 <= length <= 200
projectId*string
Match^[\w-]+$
Lengthlength <= 64

Request Body

application/json
  1. body
version?string
Match^[^\s/]+$
Length1 <= length <= 200
ref?|
Length1 <= length <= 255

Response Body

application/json
  1. response
id*string
version*string
url*string|null
releasedAt*|
Formatdate-time
createdAt*string
Formatdate-time
status*ReleaseStatus
Value in"pending""healthy""degraded""regressed"
current*
previous*|null
firstSeenAt*|
Formatdate-time
lastSeenAt*|
Formatdate-time
adoption*array<integer>
projects*array<>
previousRelease*|null
Example Request
curl -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"
  }
}