Create review
POST
/api/v1/projects/{projectId}/policies/{projectPolicyId}/controls/{projectPolicyControlId}/reviews
const url = 'https://localhost:10001/api/v1/projects/1/policies/1/controls/1/reviews';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"attachmentCid":["example"],"cid":"example","commentType":"GENERAL","createdAt":"example","extra":{"additionalProperty":"example"},"fileAttachments":[{"contentType":"example","declarationId":1,"description":"example","fileName":"example","id":1,"isPublic":true,"retentionExpires":"example","reviewId":1,"sizeBytes":1,"storagePath":"example","uploadedAt":"example","uploadedBy":"example"}],"id":1,"outcome":"NON_COMPLIANT","projectPolicyControlId":1,"statement":"example","subjectLine":"example","submittedAt":"example","submittedBy":"example","updatedAt":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://localhost:10001/api/v1/projects/1/policies/1/controls/1/reviews \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "attachmentCid": [ "example" ], "cid": "example", "commentType": "GENERAL", "createdAt": "example", "extra": { "additionalProperty": "example" }, "fileAttachments": [ { "contentType": "example", "declarationId": 1, "description": "example", "fileName": "example", "id": 1, "isPublic": true, "retentionExpires": "example", "reviewId": 1, "sizeBytes": 1, "storagePath": "example", "uploadedAt": "example", "uploadedBy": "example" } ], "id": 1, "outcome": "NON_COMPLIANT", "projectPolicyControlId": 1, "statement": "example", "subjectLine": "example", "submittedAt": "example", "submittedBy": "example", "updatedAt": "example" }'Submit a review for a specific control and return the persisted record
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” projectId
required
integer
Project ID
projectPolicyId
required
integer
Project Policy ID
projectPolicyControlId
required
integer
Project Policy Control ID
Request Body
Section titled “Request Body ”Review data
Media type application/json
object
attachmentCid
Array<string>
cid
string
commentType
string
createdAt
string
extra
object
key
additional properties
string
fileAttachments
Array<object>
object
contentType
string
declarationId
integer
description
string
fileName
string
id
integer
isPublic
boolean
retentionExpires
string
reviewId
integer
sizeBytes
integer
storagePath
string
uploadedAt
string
uploadedBy
string
id
integer
outcome
string
projectPolicyControlId
integer
statement
string
subjectLine
string
submittedAt
string
submittedBy
string
updatedAt
string
Responses
Section titled “ Responses ”Created review
Media type application/json
object
attachmentCid
Array<string>
cid
string
commentType
string
createdAt
string
extra
object
key
additional properties
string
fileAttachments
Array<object>
object
contentType
string
declarationId
integer
description
string
fileName
string
id
integer
isPublic
boolean
retentionExpires
string
reviewId
integer
sizeBytes
integer
storagePath
string
uploadedAt
string
uploadedBy
string
id
integer
outcome
string
projectPolicyControlId
integer
statement
string
subjectLine
string
submittedAt
string
submittedBy
string
updatedAt
string
Example
{ "commentType": "GENERAL", "outcome": "NON_COMPLIANT"}Bad request - Invalid IDs or request body
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Unauthorized - Authentication required
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Forbidden - Insufficient permissions for this review outcome
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}No matching control found in project policy
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}Internal server error
Media type application/json
object
key
additional properties
string
Example generated
{ "additionalProperty": "example"}