User_Information
User Image

User Images

Profile picture image types can be:

  • profileImg
  • headerImg
  • featuredImg
  • actionUserImg

Create User Image

POST
POST /v1/users/{uuid}/image
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
    "payload": {
        "uuid": "120dc607-ce57-4fb0-a6ba-49ff6e194529",
        "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
        "type": "profileImg",
        "url": "",
        "dateCreated": "2023-06-27T13:38:08.162375532Z",
        "firstName": "John",
        "lastName": "Doe",
        "dateOfRejection": "2023-06-30T11:59:05.006421777Z",
        "reasonOfRejection":""
    }
}
Response
 
{
    "result": {
        "uuid": "120dc607-ce57-4fb0-a6ba-49ff6e194529",
        "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
        "type": "profileImg",
        "url": "",
        "dateCreated": "2023-06-27T13:38:08.162375532Z",
        "firstName": "John",
        "lastName": "Doe"
        "dateOfRejection": "2023-06-30T11:59:05.006421777Z",
        "reasonOfRejection":""
    }
}

Delete User Image by User, Image uuid

DELETE
DELETE /v1/users/{uuid}/image/{image_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty
Response
200 OK if the image was successfully deleted"

List Unapproved User Images

GET
GET /v1/admin/pending_images 
💡
This request requires “PB-API-TOKEN” from the platforms.

Query parameters

NameDescription
user_uuidLists unaproved user images by user uuid
Request
Empty 
Response
{
    "totalRecords": "2",
    "results": [
        {
            "uuid": "3c7601ca-eb05-44ea-b25f-dd0ba8d112b4",
            "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
            "type": "COVER",
            "url": "",
            "dateCreated": "2023-06-30T11:35:09.636Z",
            "firstName": "John",
            "lastName": "Doe",
            "totalApprovals": 1,
            "dateOfRejection": "2023-06-30T11:59:05.006421777Z",
            "reasonOfRejection":""
        },
        {
            "uuid": "43cb4163-38e2-4e70-8996-dde0793f1a0b",
            "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
            "type": "PROFILE",
            "url": "",
            "dateCreated": "2023-06-30T11:36:53.811Z",
            "firstName": "John",
            "lastName": "Doe",
            "totalApprovals": 1,
            "dateOfRejection": "2023-06-30T11:59:05.006421777Z",
            "reasonOfRejection":""
        }
    ]
}

Pending Sponsors

GET
/v1/admin/pending_sponsors
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
{
   "totalRecords": "1",
   "result": [
       {
           "uuid": "5f77816b-c57d-4708-90f0-94e224fe792e",
           "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
           "title": "Fake Sponsor",
           "url": "www.facebook.com",
           "description": "This is sponsor for testing puropse!",
           "displayOrder": 1,
           "dateCreated": null,
           "dateStartedSponsorship": null,
           "dateDisabled": null,
           "isPrimary": false,
           "isApproved": false,
           "sponsorImages": []
       }
   ]
}

Pending Sponsor Images

GET
 /v1/admin/pending_sponsor_images
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
Empty 
Response
{
    "totalRecords": "1",
    "result": [
        {
            "uuid": "c4cb822e-5c18-4b7c-a27d-9635ccc5cd16",
            "sponsorUuid": "128e54cf-5d99-4f70-9fcc-988823b83657",
            "url": "https://images.pickleball.com/placeholder/pickleball.png",
            "displayOrder": 0,
            "dateDisabled": null,
            "isPrimary": false,
            "isApproved": false,
            "size": "",
            "color": ""
        }
    ]
}