{
  "opencollection": "1.0.0",
  "info": {
    "name": "Horizon API V1 AccountExternalTruckIdentifier MaterialRates API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "MaterialRates",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve MaterialRates that belong to a Company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/material_rates",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              },
              {
                "name": "filter[customer_account_id]",
                "value": "",
                "type": "query",
                "description": "The associated Customer Account ID"
              },
              {
                "name": "filter[default_only]",
                "value": "",
                "type": "query",
                "description": "Only show default records"
              },
              {
                "name": "filter[material_ids]",
                "value": "",
                "type": "query",
                "description": "The associated Material IDs"
              },
              {
                "name": "filter[project_ids]",
                "value": "",
                "type": "query",
                "description": "The associated Project IDs"
              },
              {
                "name": "filter[site_ids]",
                "value": "",
                "type": "query",
                "description": "The associated Site IDs"
              }
            ]
          },
          "docs": "Retrieve `MaterialRates` for a `Company`.\n\n- When retrieving `Company`-default `MaterialRates`, use `filter[default_only]=true`.\n- When retrieving `Customer Account`-specific `MaterialRates`, use `filter[customer_account_id]=customer_account_uuid`."
        },
        {
          "info": {
            "name": "Create a MaterialRate within a Company context",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/material_rates",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a `MaterialRate` within a specific `Company` context.\n\nThis endpoint requires the `create_material_rate` permission."
        },
        {
          "info": {
            "name": "Typeahead search on MaterialRates for a Company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/companies/:company-id/material_rates/typeahead",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company-id",
                "value": "",
                "type": "path",
                "description": "Company ID"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              },
              {
                "name": "search[site][query]",
                "value": "",
                "type": "query",
                "description": "Search string for queries on Site"
              },
              {
                "name": "filter[customer_account_id]",
                "value": "",
                "type": "query",
                "description": "The associated Customer Account ID"
              },
              {
                "name": "filter[project_id]",
                "value": "",
                "type": "query",
                "description": "Project ID filter"
              },
              {
                "name": "filter[material_id]",
                "value": "",
                "type": "query",
                "description": "The associated Material ID"
              },
              {
                "name": "filter[site_id]",
                "value": "",
                "type": "query",
                "description": "The associated Site ID"
              }
            ]
          },
          "docs": "`search[site][query]` is a typeahead against the `MaterialRate`'s `Site`'s `name`"
        },
        {
          "info": {
            "name": "Create a MaterialRate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.tread-horizon.com/v1/material_rates",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a `MaterialRate`.\n\nThis endpoint requires the `create_material_rate` permission."
        },
        {
          "info": {
            "name": "Retrieve a single MaterialRate",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/material_rates/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "MaterialRate ID"
              }
            ]
          },
          "docs": "Retrieve a `MaterialRate` by ID."
        },
        {
          "info": {
            "name": "Update a MaterialRate",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.tread-horizon.com/v1/material_rates/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "MaterialRate ID"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a `MaterialRate` by ID.\n\nThis endpoint requires the `edit_material_rate` permission."
        },
        {
          "info": {
            "name": "Delete a MaterialRate",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.tread-horizon.com/v1/material_rates/:id",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "MaterialRate ID"
              }
            ]
          },
          "docs": "Delete a `MaterialRate` by ID.\n\nThis endpoint requires the `edit_material_rate` permission."
        },
        {
          "info": {
            "name": "Retrieve MaterialRates of a Project",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.tread-horizon.com/v1/projects/:project-id/material_rates",
            "headers": [
              {
                "name": "Accept-Language",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "project-id",
                "value": "",
                "type": "path",
                "description": "Project ID"
              },
              {
                "name": "page[limit]",
                "value": "",
                "type": "query",
                "description": "The maximum number of paginated results to return"
              },
              {
                "name": "page[after]",
                "value": "",
                "type": "query",
                "description": "The cursor to start paginating after"
              },
              {
                "name": "page[before]",
                "value": "",
                "type": "query",
                "description": "The cursor to stop paginating at"
              }
            ]
          },
          "docs": "Retrieve `MaterialRates` of a `Project`."
        }
      ]
    }
  ],
  "bundled": true
}