{
  "opencollection": "1.0.0",
  "info": {
    "name": "Qargo TMS API / Accounting API / Resource API",
    "version": "1.2.0"
  },
  "items": [
    {
      "info": {
        "name": "API / Resource",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Resources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "updated_after",
                "value": "",
                "type": "query",
                "description": "Filter to fetch the resources updated after this time. Timestamp format is ISO 8601 YYYY-MM-DDTHH:MM:SSZ"
              },
              {
                "name": "external_id",
                "value": "",
                "type": "query",
                "description": "External resource identifier to match exactly."
              },
              {
                "name": "external_id:in",
                "value": "",
                "type": "query",
                "description": "External resource identifiers to match. Comma-separated list."
              },
              {
                "name": "resource_type",
                "value": "",
                "type": "query",
                "description": "Resource type to match exactly."
              },
              {
                "name": "resource_type:in",
                "value": "",
                "type": "query",
                "description": "Resource types to match. Comma-separated list."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all resources"
        },
        {
          "info": {
            "name": "Create Resource",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/resources/resource",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new resource."
        },
        {
          "info": {
            "name": "Get Resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Fetches a resource"
        },
        {
          "info": {
            "name": "Update Resource",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing resource."
        },
        {
          "info": {
            "name": "Patch Resource",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially update an existing resource."
        },
        {
          "info": {
            "name": "Archive Resource",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Archive a resource"
        },
        {
          "info": {
            "name": "List Resource Unavailabilities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/unavailability",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Filter to fetch unavailabilities after this time"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "Filter to fetch unavailabilities before this time"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all unavailabilities for a resource"
        },
        {
          "info": {
            "name": "Create Resource Unavailabilities",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/unavailability",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new unavailability for a resource."
        },
        {
          "info": {
            "name": "Get Resource Unavailability",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/unavailability/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Fetch a resource unavailability"
        },
        {
          "info": {
            "name": "Update Resource Unavailabilities",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/unavailability/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing unavailability for a resource."
        },
        {
          "info": {
            "name": "Delete Resource Unavailabilities",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/unavailability/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a resource unavailability"
        },
        {
          "info": {
            "name": "List Resource Validities",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "start_time",
                "value": "",
                "type": "query",
                "description": "Filter to fetch unavailabilities after this time"
              },
              {
                "name": "end_time",
                "value": "",
                "type": "query",
                "description": "Filter to fetch unavailabilities before this time"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List all validities for a resource"
        },
        {
          "info": {
            "name": "Create Resource Validity Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create a new validity request for a resource."
        },
        {
          "info": {
            "name": "Get Resource Validity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Fetches a specific validity for a resource"
        },
        {
          "info": {
            "name": "Update Resource Validity",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update an existing validity for a resource."
        },
        {
          "info": {
            "name": "Delete Resource Validity",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity/:id",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a resource validity"
        },
        {
          "info": {
            "name": "Get Resource Validity Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource/:resource_id/validity/:id/documents",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Fetch all documents associated with a specific resource validity."
        },
        {
          "info": {
            "name": "List Resource Groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/resources/resource_groups",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List the resource groups resources can be allocated to. Archived resource groups are not included."
        }
      ]
    }
  ],
  "bundled": true
}