{
  "opencollection": "1.0.0",
  "info": {
    "name": "Thumbtack Demand Authentication Pro Profiles API",
    "version": "4.0.0-draft"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Pro Profiles",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve Thumbtack account/profile info for the connected pro",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thumbtack.com/v2/get-thumbtack-info",
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.thumbtack.com/v4/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Thumbtack account/profile info for the connected pro"
        },
        {
          "info": {
            "name": "Disconnect a partner integration from a pro's Thumbtack account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.thumbtack.com/v2/disconnect-partner",
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Disconnect a partner integration from a pro's Thumbtack account"
        },
        {
          "info": {
            "name": "Update lead-targeting preferences for a pro's service",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.thumbtack.com/v3/accounts/:accountID/services/:serviceID/preferences/targeting",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              },
              {
                "name": "serviceID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.thumbtack.com/v4/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update lead-targeting preferences for a pro's service"
        },
        {
          "info": {
            "name": "Update lead-targeting preferences for a pro's service category",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.thumbtack.com/v3/accounts/:accountID/services/:serviceID/categories/:categoryID/preferences/targeting",
            "params": [
              {
                "name": "accountID",
                "value": "",
                "type": "path"
              },
              {
                "name": "serviceID",
                "value": "",
                "type": "path"
              },
              {
                "name": "categoryID",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://api.thumbtack.com/v4/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update lead-targeting preferences for a pro's service category"
        }
      ]
    }
  ],
  "bundled": true
}