{
  "opencollection": "1.0.0",
  "info": {
    "name": "COR Attachments Resource Allocation API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Resource Allocation",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Save Allocation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.projectcor.com/v1/allocation/saveAllocation",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new resource allocation for a user on a project.\n\n**Request Body Requirements:**\nAll values in the object are required.\n\n**Known Errors:**\n- `InvalidAllocationError` — The allocation is invalid:\n  - Empty `allocatedHours` field\n  - The `from` date is greater than or equal to the `to` date\n  - The date range exceeds 12 months\n- `AllocationAlreadyExistInDatesRangeError` — An allocation already exists within the specified date range\n- `UserNotFoundError` — The specified user cannot be fou"
        },
        {
          "info": {
            "name": "Update Allocation",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.projectcor.com/v1/allocation/updateAllocation",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an existing resource allocation. Requires both the old allocation data and the new allocation data.\n\n**Known Errors:**\n- `InvalidAllocationError` — The new allocation is invalid:\n  - Empty `allocatedHours` field\n  - The `from` date is greater than or equal to the `to` date\n  - The date range exceeds 12 months\n- `AllocationNotFoundError` — The specified old allocation cannot be found\n- `AllocationAlreadyExistInDatesRangeError` — The new allocation already exists within the specified date "
        },
        {
          "info": {
            "name": "Delete Allocation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.projectcor.com/v1/allocation/removeAllocation",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes an existing resource allocation.\n\n**Request Body Requirements:**\nAll values in the object are required.\n\n**Known Errors:**\n- `AllocationNotFoundError` — The specified allocation cannot be found\n- `ProjectNotFoundError` — The specified project cannot be found\n\nPlease ensure that your request is valid and all specified resources exist to avoid these errors."
        },
        {
          "info": {
            "name": "Get Allocations By Project",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.projectcor.com/v1/allocation/getAllocations/:projectId",
            "params": [
              {
                "name": "projectId",
                "value": "12345",
                "type": "path",
                "description": "Project ID to get allocations for"
              }
            ]
          },
          "docs": "Gets information about user allocations for a given project. Returns all users allocated to the project along with their allocation details and allocations in other projects."
        }
      ]
    }
  ],
  "bundled": true
}