{
  "opencollection": "1.0.0",
  "info": {
    "name": "IO.Common Accounts Units API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
      "accessTokenUrl": "https://identity.scanbro.com/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Units",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all units",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/Units",
            "params": [
              {
                "name": "Filter",
                "value": "",
                "type": "query"
              },
              {
                "name": "Page",
                "value": "",
                "type": "query"
              },
              {
                "name": "PageSize",
                "value": "",
                "type": "query"
              },
              {
                "name": "SortColumn",
                "value": "",
                "type": "query"
              },
              {
                "name": "SortOrder",
                "value": "",
                "type": "query"
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all units"
        },
        {
          "info": {
            "name": "Create new unit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/Units",
            "params": [
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create new unit"
        },
        {
          "info": {
            "name": "Get unit",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/Units/:unitId",
            "params": [
              {
                "name": "unitId",
                "value": "",
                "type": "path",
                "description": "UnitId"
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get unit"
        },
        {
          "info": {
            "name": "Update existing unit",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/Units/:unitId",
            "params": [
              {
                "name": "unitId",
                "value": "",
                "type": "path"
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update existing unit"
        },
        {
          "info": {
            "name": "Delete unit",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/Units/:unitId",
            "params": [
              {
                "name": "unitId",
                "value": "",
                "type": "path"
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete unit"
        },
        {
          "info": {
            "name": "Get all units for search ordered by usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/Units/SortedByUsage",
            "params": [
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get all units for search ordered by usage"
        },
        {
          "info": {
            "name": "Validates whether a single unit ID exists",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/Units/validate",
            "params": [
              {
                "name": "unitId",
                "value": "",
                "type": "query"
              },
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Validates whether a single unit ID exists"
        },
        {
          "info": {
            "name": "Validates multiple unit IDs. Returns only invalid IDs.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/Units/validate",
            "params": [
              {
                "name": "Account",
                "value": "",
                "type": "query",
                "description": "Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://identity.scanbro.com/connect/authorize",
              "accessTokenUrl": "https://identity.scanbro.com/connect/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Validates multiple unit IDs. Returns only invalid IDs."
        }
      ]
    }
  ],
  "bundled": true
}