Skip to main content
POST
/
v1
/
assessments
/
revisions
/
{revision_id}
/
approve
Approve an assessment revision
curl --request POST \
  --url https://api.app.chainloop.dev/v1/assessments/revisions/{revision_id}/approve \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "review_note": "review_note"
}
'
{
  "result": {
    "justification_code": null,
    "note": "note",
    "approval_status": "ASSESSMENT_APPROVAL_STATUS_UNSPECIFIED",
    "reviewed_at": "2000-01-23T04:56:07.000Z",
    "created_at": "2000-01-23T04:56:07.000Z",
    "assessment_id": "assessment_id",
    "project_version_id": "project_version_id",
    "reviewer": {
      "intercom_hash": "intercom_hash",
      "created_at": "2000-01-23T04:56:07.000Z",
      "last_name": "last_name",
      "id": "id",
      "first_name": "first_name",
      "email": "email",
      "instance_admin": true
    },
    "created_by": {
      "api_token": {
        "id": "id"
      },
      "type": "ASSESSMENT_CREATOR_TYPE_UNSPECIFIED",
      "user": {
        "intercom_hash": "intercom_hash",
        "created_at": "2000-01-23T04:56:07.000Z",
        "last_name": "last_name",
        "id": "id",
        "first_name": "first_name",
        "email": "email",
        "instance_admin": true
      },
      "ai_agent": {
        "name": "name"
      }
    },
    "revision": 1,
    "products": [
      {
        "purl_glob": "purl_glob"
      },
      {
        "purl_glob": "purl_glob"
      }
    ],
    "review_note": "review_note",
    "scope": null,
    "id": "id",
    "status": null
  }
}

Authorizations

Authorization
string
header
required

Bearer token for authentication

Path Parameters

revision_id
string
required

Revision ID to approve

Body

application/json

Request to approve a pending assessment revision

review_note
string

Optional reviewer note

Response

A successful response.

Response for ApproveAssessmentRevision method

result
AssessmentRevision · object

Immutable snapshot of an assessment at a revision number, with authorship and review audit trails

Example:
{
"justification_code": null,
"note": "note",
"approval_status": "ASSESSMENT_APPROVAL_STATUS_UNSPECIFIED",
"reviewed_at": "2000-01-23T04:56:07.000Z",
"created_at": "2000-01-23T04:56:07.000Z",
"assessment_id": "assessment_id",
"project_version_id": "project_version_id",
"reviewer": {
"intercom_hash": "intercom_hash",
"created_at": "2000-01-23T04:56:07.000Z",
"last_name": "last_name",
"id": "id",
"first_name": "first_name",
"email": "email",
"instance_admin": true
},
"created_by": {
"api_token": { "id": "id" },
"type": "ASSESSMENT_CREATOR_TYPE_UNSPECIFIED",
"user": {
"intercom_hash": "intercom_hash",
"created_at": "2000-01-23T04:56:07.000Z",
"last_name": "last_name",
"id": "id",
"first_name": "first_name",
"email": "email",
"instance_admin": true
},
"ai_agent": { "name": "name" }
},
"revision": 1,
"products": [
{ "purl_glob": "purl_glob" },
{ "purl_glob": "purl_glob" }
],
"review_note": "review_note",
"scope": null,
"id": "id",
"status": null
}