{
"opencollection": "1.0.0",
"info": {
"name": "Bench AccountActivities Allocations API",
"version": "1.0"
},
"items": [
{
"info": {
"name": "Allocations",
"type": "folder"
},
"items": [
{
"info": {
"name": "Gets the allocations for roles in the given account and project",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://bench.gobridgit.com/rp/api/v1/accounts/:accountId/projects/:projectId/Allocations",
"params": [
{
"name": "accountId",
"value": "",
"type": "path",
"description": "The Account ID"
},
{
"name": "projectId",
"value": "",
"type": "path",
"description": "The Project ID"
},
{
"name": "relativeDate",
"value": "2021-01-01",
"type": "query",
"description": "Optional paramater used to calculate date based properties. If not provided, it is set to today's date in UTC."
},
{
"name": "offset",
"value": "",
"type": "query",
"description": "Offset for pagination"
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "Maximum number of results in this page"
},
{
"name": "personstate",
"value": "",
"type": "query",
"description": "State of persons to filter results by (Default Active)"
},
{
"name": "daysUntilTimeOff",
"value": "",
"type": "query",
"description": "Used to calculate the upcoming TimeOff unavailabilities based on the relativeDate"
},
{
"name": "type",
"value": "",
"type": "query",
"description": "Salaried role type to filter results by (Default to Operations)"
}
]
},
"docs": "
Permissions
Person: Read
Role: Read
Allocation: Read
Private: Read
Finance: Read"
},
{
"info": {
"name": "Allocates a person to a role on the given account and project",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://bench.gobridgit.com/rp/api/v1/accounts/:accountId/projects/:projectId/Allocations",
"params": [
{
"name": "accountId",
"value": "",
"type": "path",
"description": "The Account ID"
},
{
"name": "projectId",
"value": "",
"type": "path",
"description": "The Project ID"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "A person cannot be allocated entirely inside a period of unavailability and cannot be allocated outside of their employment dates.\n\nFor allocations that overlap a period of unavailability, the API will truncate or not set the date range that the person is unavailable.\n\nExamples: Unavaialble from 2020-01-11 to 2020-01-25, Allocation date from 2020-01-20 to 2020-03-31, will alocate the person from 2020-01-26 to 2020-03-31\n\nUnavaialble from 2020-01-11 to 2020-01-25, Allocation date from 2020-01-01 "
},
{
"info": {
"name": "Updates a person's allocation on a role on the given account and project",
"type": "http"
},
"http": {
"method": "PUT",
"url": "https://bench.gobridgit.com/rp/api/v1/accounts/:accountId/projects/:projectId/Allocations",
"params": [
{
"name": "accountId",
"value": "",
"type": "path",
"description": "The Account ID"
},
{
"name": "projectId",
"value": "",
"type": "path",
"description": "The Project ID"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "A person cannot be allocated entirely inside a period of unavailability and cannot be allocated outside of their employment dates.\n\nFor allocations that overlap a period of unavailability, the API will truncate or not set the date range that the person is unavailable.\n\nExamples: Unavaialble from 2020-01-11 to 2020-01-25, Allocation date from 2020-01-20 to 2020-03-31, will alocate the person from 2020-01-26 to 2020-03-31\n\nUnavaialble from 2020-01-11 to 2020-01-25, Allocation date from 2020-01-01 "
},
{
"info": {
"name": "Removes a person's allocation on a role on the given account and project",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://bench.gobridgit.com/rp/api/v1/accounts/:accountId/projects/:projectId/Allocations",
"params": [
{
"name": "accountId",
"value": "",
"type": "path",
"description": "The Account ID"
},
{
"name": "projectId",
"value": "",
"type": "path",
"description": "The Project ID"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "The request must contain the role id, person id, start and end date to ensure that the role and allocation is correct and hasn't been modified before trying to delete it.
Permissions
Person: Read
Role: Read
Allocation: Write"
}
]
}
],
"bundled": true
}