{
  "opencollection": "1.0.0",
  "info": {
    "name": "Vitally REST Accounts API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.vitally.io/resources/accounts",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items to return. Max/default is 100."
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The cursor returned from a previous request (from the next property)."
              },
              {
                "name": "sortBy",
                "value": "",
                "type": "query",
                "description": "How to order results. Default updatedAt."
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "One of active (default), churned, or activeOrChurned."
              }
            ]
          },
          "docs": "Paginated list of Accounts, by default ordered by updatedAt descending."
        },
        {
          "info": {
            "name": "Create an account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.rest.vitally.io/resources/accounts",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an account"
        },
        {
          "info": {
            "name": "Get an account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.vitally.io/resources/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get an account"
        },
        {
          "info": {
            "name": "Update an account",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{subdomain}.rest.vitally.io/resources/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an account"
        },
        {
          "info": {
            "name": "Delete an account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.rest.vitally.io/resources/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete an account"
        },
        {
          "info": {
            "name": "List accounts for an organization",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.rest.vitally.io/resources/organizations/:organizationId/accounts",
            "params": [
              {
                "name": "organizationId",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items to return. Max/default is 100."
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The cursor returned from a previous request (from the next property)."
              }
            ]
          },
          "docs": "List accounts for an organization"
        }
      ]
    }
  ],
  "bundled": true
}