Reservations API - Version 1.0

  • Parameters
    • user_id = Person's ID in Silverbucket
    • user_username = Person's username in Silverbucket
    • user_email = Person's email address in Silverbucket
    • role_name = Person's role in the project or the role which should be allocated, if the person is not specified
    • project_id = Project's ID in Silverbucket
    • project_code = Project's code in Silverbucket
    • startdate = Reservation's start date in ISO format YYYY-MM-DD
    • enddate = Reservation's end date in ISO format YYYY-MM-DD
    • hours = Total amount of hours which will be allocated to the given time span
    • percentage = Daily allocation as a percentage from the user/role daily capacity
    • overwrite_all = Overwrite all person's allocations in other projects


{"rows":[
    {
        "overwrite_all": "true", 
        "user_username": "matti.meikalainen", 
        "project_code": "FOO", 
        "startdate": "2017-01-01", 
        "enddate": "2017-12-01", 
        "percentage": 100
    }, 
    {
        "overwrite_all": "true", 
        "user_email": "matti.meikalainen@foo.bar", 
        "project_code": "BAR", 
        "startdate": "2017-01-01", 
        "enddate": "2017-12-01", 
        "percentage": 100
    }, 
    {
        "overwrite_all": "false", 
        "role_name": "FOO",
        "project_code": "BAR", 
        "startdate": "2017-01-01", 
        "enddate": "2017-01-31", 
        "hours": 160
    },
    {
        "overwrite_all": "true", 
        "user_id": 1, 
        "project_id": 1, 
        "startdate": "2017-01-01", 
        "enddate": "2017-12-01", 
        "percentage": 100
    }
]}


curl -H "Content-Type: application/json" -H 'Authorization: Token <AUTH_TOKEN>' -X POST https://<SUBDOMAIN>.agbucket.com/api/1.0/allocations/save-daterange/  -d 'JSONDATA'