System Approval Comments
Create System Approval Comment
POST
/v1/admin/system-approvals/{item_uuid}/comments
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
{
"payload": {
"content": "comment-example-1",
}
}
Response
{
"result": {
"uuid": "5a1cf7f8-0c6c-43f2-b3b9-5f89dd5b8f95",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "comment-example-1",
"date_created": "2023-12-21T12:20:53.098269369Z",
"last_modified_date": null
}
}
Update System Approval Comment
PUT
/v1/admin/system-approvals/{item_uuid}/comments/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
{
"payload": {
"content": "updated comment",
}
}
Response
{
"result": {
"uuid": "5a1cf7f8-0c6c-43f2-b3b9-5f89dd5b8f95",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "updated comment",
"date_created": "2023-12-21T12:20:53.098269369Z",
"last_modified_date": "2023-12-21T12:30:31.177333530Z"
}
}
List All System Approval Comments
GET
/v1/admin/system-approvals/{item_uuid}/comments
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"total_records": "3",
"results": [
{
"uuid": "1096a60b-c9c9-4730-b06f-bfd896ae1d52",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "comment 1",
"date_created": "2023-12-21T12:20:48Z",
"last_modified_date": null
},
{
"uuid": "27ef2d21-2a90-41cc-8a9c-16676c61ac2a",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "comment 2",
"date_created": "2023-12-21T12:20:51Z",
"last_modified_date": null
},
{
"uuid": "5a1cf7f8-0c6c-43f2-b3b9-5f89dd5b8f95",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "comment 3",
"date_created": "2023-12-21T12:20:51Z",
"last_modified_date": "2023-12-21T12:30:31Z"
}
]
}
Get Single System Approval Comment
GET
/v1/admin/system-approvals/{item_uuid}/comments/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
"uuid": "5a1cf7f8-0c6c-43f2-b3b9-5f89dd5b8f95",
"system_approval_item_uuid": "810c4e24-d921-42ea-9b58-80579c00bf79",
"content": "comment 1",
"date_created": null,
"last_modified_date": "2023-12-21T12:30:31Z"
}
Delete System Approval Comment
DELETE
/v1/admin/system-approvals/{item_uuid}/comments/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
Response will be 200 OK if the Comment was successfully deleted