Skip to Content
OpenPerf

Releases

Record a deploy

POST
/api/v1/releases/{id}/deploys

Records that a release went out to an environment, for all of its projects or for the ones in projectIds. Needs a token that can write.

Authorization

headerAuthorizationBearer <opaque>

Organization API token (opt_…)

Path Parameters

id*string
Match^[\w-]+$
Lengthlength <= 64

Request Body

application/json
  1. body
environment*string
Length1 <= length <= 100
projectIds?array<>
Items1 <= items <= 100
name?string
Length1 <= length <= 200
url?string
Formaturi
startedAt?string
Formatdate-time
finishedAt?string
Formatdate-time

Response Body

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://api.example.com/api/v1/releases/string/deploys' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "environment": "string"
}'
Example Response
[
  {
    "id": "string",
    "releaseId": "string",
    "projectId": "string",
    "version": "string",
    "environment": "string",
    "name": "string",
    "url": "string",
    "startedAt": "2019-08-24T14:15:22Z",
    "finishedAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z"
  }
]