{
  "opencollection": "1.0.0",
  "info": {
    "name": "WHOOP Activity ID Mapping Partner API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Partner",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Generate Test Data for Partner Development",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.prod.whoop.com/developer/v2/partner/development/add-test-data",
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Generates test user and lab requisition data for partner integration testing. This endpoint is only available in non-production environments"
        },
        {
          "info": {
            "name": "Get a Lab Requisition by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.prod.whoop.com/developer/v2/partner/requisition/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the lab requisition"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a lab requisition with its associated service requests by its unique identifier. The requesting partner must be an owner of the lab requisition."
        },
        {
          "info": {
            "name": "Get a Service Request by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.prod.whoop.com/developer/v2/partner/service-request/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the service request"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a service request by its unique identifier. The requesting partner must be an owner of the service request."
        },
        {
          "info": {
            "name": "Request a Partner Client Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.prod.whoop.com/developer/v2/partner/token",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Exchanges partner client credentials for an access token."
        },
        {
          "info": {
            "name": "Update Lab Requisition Service Request Statuses",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.prod.whoop.com/developer/v2/partner/requisition/:id/status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the lab requisition"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Updates the task business status on all service requests belonging to the requisition. The requesting partner must be an owner."
        },
        {
          "info": {
            "name": "Update Service Request Status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.prod.whoop.com/developer/v2/partner/service-request/:id/status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the service request"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Updates the business status of a service request task. The requesting partner must be an owner of the service request."
        },
        {
          "info": {
            "name": "Create Diagnostic Report Results for a Service Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.prod.whoop.com/developer/v2/partner/service-request/:id/results",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier of the service request"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.prod.whoop.com/developer/v2/partner/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates a diagnostic report with results for a service request. The requesting partner must be an owner of the service request."
        }
      ]
    }
  ],
  "bundled": true
}