User_Information
User Equipment

User Equipment

Create User Equipment

POST
/v1/user_equipment
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
    "payload": {
        "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
        "equipmentTypeId": "1",
        "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
        "title": "Test equipment name",
        "productUrl": "www.product-url.com",
        "image": "test.png"
    }
}
Response
{
    "result": {
        "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
        "equipmentTypeId": "1",
        "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
        "title": "Test equipment name",
        "productUrl": "www.product-url.com",
        "image": "test.png"
    }
}

Delete Tourney Flat Data

DELETE
/v1/user_equipment/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.

List User Equipment

GET
/v1/data/user_equipment
💡
This request requires “PB-API-TOKEN” from the platforms.
ParamDescription
page_sizeNumber value that represents number of returned results.
current_pageNumber value that represents offset of returned results.
uuidUuid of the user equipment.
Response
{
    "totalRecords": "3",
    "results": [
        {
            "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
            "equipmentTypeId": "1",
            "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
            "title": "Test equipment name",
            "productUrl": "www.product-url.com",
            "image": "test.png"
        },
        {
            "uuid": "924e7aeb-3a3e-4b2e-a32d-833098f241b4",
            "equipmentTypeId": "2",
            "userUuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
            "title": "Test equipment name",
            "productUrl": "www.product-url.com",
            "image": "testing.png"
        },
        {
            "uuid": "9535faa0-e8de-4509-89f5-988ed7cad2ad",
            "equipmentTypeId": "3",
            "userUuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
            "title": "Test equipment name",
            "productUrl": "www.product-url1.com",
            "image": "testing1.png"
        }
    ]
}

List Single User Equipment

GET
/v1/data/user_equipment/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms or “PB-USER-TOKEN” from the authenticated user.
Response
{
    "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
    "equipmentTypeId": "1",
    "userUuid": "BD49B56C-EAC9-4653-8A71-59BD961BABBE",
    "title": "Test equipment name",
    "productUrl": "www.product-url.com",
    "image": "test.png"
}

Update User Equipment

PUT
/v1/user_equipment/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload":{
      "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
      "equipment_type_id": "3",
      "user_uuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
     "title": "Pickleball Paddle",
     "product_url": "www.product-url1.com",
     "image": "testing1.png"
  }
}
Response
{
    "result": {
        "uuid": "1993ab62-c78a-451b-a472-cfce1ce92a80",
        "equipmentTypeId": "3",
        "userUuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
        "title": "Pickleball Paddle",
        "productUrl": "www.product-url1.com",
        "image": "testing1.png"
    }
}

Upsert User Equipment

POST
/v1/user_equipment/upsert
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
  "payload":{
      "uuid": "1787843-c78a-451b-a472-cfce1ce92a80",
      "equipment_type_id": "6",
      "user_uuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
     "title": "Pickleball Paddle 1",
     "product_url": "www.product-url.com",
     "image": "test.png"
  }
}
Response
{
    "result": {
        "uuid": "1787843-c78a-451b-a472-cfce1ce92a80",
        "equipmentTypeId": "6",
        "userUuid": "BBJQHV1-AA14-CBJ1-77HC-59BD961BABBE",
        "title": "Pickleball Paddle 1",
        "productUrl": "www.product-url.com",
        "image": "test.png"
    }
}