{
  "opencollection": "1.0.0",
  "info": {
    "name": "Modern Treasury AccountCapability LegalEntity API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "LegalEntity",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "list legal_entities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:3000/api/legal_entities",
            "params": [
              {
                "name": "after_cursor",
                "value": "",
                "type": "query"
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query"
              },
              {
                "name": "legal_entity_type",
                "value": "",
                "type": "query"
              },
              {
                "name": "status",
                "value": "",
                "type": "query"
              },
              {
                "name": "show_deleted",
                "value": "",
                "type": "query"
              },
              {
                "name": "external_id",
                "value": "",
                "type": "query",
                "description": "An optional user-defined 180 character unique identifier."
              },
              {
                "name": "metadata",
                "value": "",
                "type": "query",
                "description": "For example, if you want to query for records with metadata key `Type` and value `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query parameters."
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get a list of all legal entities."
        },
        {
          "info": {
            "name": "create legal_entity",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:3000/api/legal_entities",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "create legal_entity"
        },
        {
          "info": {
            "name": "get legal_entity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:3000/api/legal_entities/:id",
            "headers": [
              {
                "name": "Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Get details on a single legal entity."
        },
        {
          "info": {
            "name": "update legal entity",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:3000/api/legal_entities/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "id"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Update a legal entity."
        },
        {
          "info": {
            "name": "update legal entity status",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:3000/api/simulations/legal_entities/:id/update_status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Legal entity ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Update Legal Entity Status (sandbox only)"
        }
      ]
    }
  ],
  "bundled": true
}