Reviews
Submit, list, and dismiss reviews to approve or reject the changes captured in a build.
List the reviews submitted on a build, with pagination.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42Build reviews
Build review
State of a build review: approved, rejected, commented (neutral) or pending (an unsubmitted draft).
Date the review was dismissed, null if not dismissed.
Date the review was created.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
GET /v2/projects/{owner}/{project}/builds/{buildNumber}/reviews HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "text",
"buildId": "text",
"state": "approved",
"user": {
"id": "text",
"slug": "text",
"name": null
},
"dismissedAt": null,
"dismissedBy": {
"id": "text",
"slug": "text",
"name": null
},
"agent": {
"id": "text",
"name": null
},
"date": "text"
}
]Submit a review on a build to approve or reject the changes it captured.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42Review event to apply to the build: "APPROVE", "REJECT" or "COMMENT". Required when conclusion is not provided.
Deprecated: use event instead. Overall review conclusion for the build: "APPROVE" or "REQUEST_CHANGES".
Optional comment to attach to the review. Either Markdown text or the JSON representation of a rich-text document.
Review submitted successfully — returns the review
Build review
State of a build review: approved, rejected, commented (neutral) or pending (an unsubmitted draft).
Date the review was dismissed, null if not dismissed.
Date the review was created.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
POST /v2/projects/{owner}/{project}/builds/{buildNumber}/reviews HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 82
{
"event": "APPROVE",
"body": null,
"snapshots": [
{
"id": "text",
"conclusion": "APPROVE"
}
]
}{
"id": "text",
"buildId": "text",
"state": "approved",
"user": {
"id": "text",
"slug": "text",
"name": null
},
"dismissedAt": null,
"dismissedBy": {
"id": "text",
"slug": "text",
"name": null
},
"agent": {
"id": "text",
"name": null
},
"date": "text"
}List the users currently requested to review a build.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42The users requested to review the build
The review requests standing on a build.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
GET /v2/projects/{owner}/{project}/builds/{buildNumber}/reviewers HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"reviewers": [
{
"id": "text",
"slug": "text",
"name": null
}
]
}Ask users to review a build. Each newly-requested reviewer is notified. Idempotent: users already requested are left untouched and not notified again. Users without access to the project are ignored, and you cannot request yourself.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42Identifiers of the users to act on — the id of a user as returned by listBuildReviewers or getMe.
The users requested to review the build
The review requests standing on a build.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
POST /v2/projects/{owner}/{project}/builds/{buildNumber}/reviewers HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"userIds": [
"text"
]
}{
"reviewers": [
{
"id": "text",
"slug": "text",
"name": null
}
]
}Cancel the review requests standing on a build. Removing a user that was not requested is a no-op.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42Identifiers of the users to act on — the id of a user as returned by listBuildReviewers or getMe.
The users still requested to review the build
The review requests standing on a build.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
DELETE /v2/projects/{owner}/{project}/builds/{buildNumber}/reviewers HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"userIds": [
"text"
]
}{
"reviewers": [
{
"id": "text",
"slug": "text",
"name": null
}
]
}Dismiss a previously submitted review on a build, clearing its effect on the build's review status.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>
Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
The build number
42The ID of the review
Review dismissed successfully — returns the review
Build review
State of a build review: approved, rejected, commented (neutral) or pending (an unsubmitted draft).
Date the review was dismissed, null if not dismissed.
Date the review was created.
Invalid parameters
Unauthorized
Forbidden
Not found
Server error
POST /v2/projects/{owner}/{project}/builds/{buildNumber}/reviews/{reviewId}/dismiss HTTP/1.1
Host: api.argos-ci.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"buildId": "text",
"state": "approved",
"user": {
"id": "text",
"slug": "text",
"name": null
},
"dismissedAt": null,
"dismissedBy": {
"id": "text",
"slug": "text",
"name": null
},
"agent": {
"id": "text",
"name": null
},
"date": "text"
}Last updated
Was this helpful?