Releases
Record a deploy
POST
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.
header
AuthorizationBearer <opaque>Organization API token (opt_…)
id*stringMatch
^[\w-]+$Length
length <= 64application/json- body
environment*stringLength
1 <= length <= 100projectIds?array<>Items
1 <= items <= 100name?stringLength
1 <= length <= 200url?stringFormat
uristartedAt?stringFormat
date-timefinishedAt?stringFormat
date-timeapplication/json- response
[index: integer]?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"
}
]