System Approvals

System Approvals

List System Approvals

GET
GET /v1/admin/system-approvals/{item_type}/{item_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Request
Empty
Response
{
    "totalRecords": "1",
    "results": [
        {
            "id": "65",
            "itemUuid": "892ec323-cb6b-4487-a4ff-2ab7f9c2addb",
            "itemType": "USER_BIO",
            "dateApproved": "2023-07-25T11:55:45.253Z",
            "approvedByUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
            "dateCanceled": null,
            "canceledByUuid": ""
        }
    ]
}

Approve Item

PUT
PUT /v1/admin/system-approvals/{item_type}/{item_uuid}/approve

Item uuid should be the uuid of the item that needs to be approved Current item types that are used: 61 (User sponsor), 75 (Sponsor image), 76 (User image), 77 (Biography)

💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Response
Response will be 200 OK if the item was successfully approved

Unapprove Items by Item Type and Item uuid

PUT
PUT /v1/admin/system-approvals/{item_type}/{item_uuid}/unapprove
💡
This request requires “PB-API-TOKEN” from the platforms.

If the user is a super admin, it will unapprove all approvals for that "item_uuid", and if the user has can_confirm_content permission, it will only remove the approval made by that user to that "item_uuid"

Request
Empty
Response
Response will be 200 OK if the item was successfully unapproved

Decline Item

PUT
PUT /v1/admin/system-approvals/{item_type}/{item_uuid}/decline
💡
This request requires “PB-API-TOKEN” from the platforms.

Item uuid should be the uuid of the item that needs to be declined. Current item types that are used: 76 (User image), 77 (Biography)

Request
{
"payload":{
    "reason_of_rejection":"Testing reason of rejection"
    }
}
Response
Response will be 200 OK if the item is successfully declined.