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:
'
'
,
'
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:
'
\
--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
cid
string
commentType
string
Allowed values:
GENERAL
ACCEPTED
QUESTIONED
createdAt
string
extra
object
key
additional properties
string
fileAttachments
Array