API Documentation

API Endpoint

Bookings

Bookings

Supported filter params

  • person_id (array)

  • event_id (array)

  • project_id (array)

  • budget_id (array)

  • origin_id (array)

  • person_type (1: user, 2: contact, 3: placeholder)

  • tags

  • after

  • before

Filter operations are supported on this endpoint.

GET /api/v2/bookings
Requestsreturns bookings

GET  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": [
    {
      "id": "1",
      "type": "bookings",
      "attributes": {
        "hours": 6,
        "time": 360,
        "started_on": "2020-10-21",
        "ended_on": "2020-10-21",
        "note": null,
        "total_time": 360,
        "percentage": null,
        "created_at": "2020-10-21T01:03:43.661+02:00",
        "updated_at": "2020-10-21T01:03:43.661+02:00",
        "people_custom_fields": null,
        "approved": false,
        "approved_at": null,
        "rejected": false,
        "rejected_reason": null,
        "rejected_at": null,
        "booking_method_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "service": {
          "data": null
        },
        "event": {
          "data": {
            "type": "events",
            "id": "1"
          }
        },
        "person": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "updater": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "approver": {
          "data": {
            "type": "people",
            "id": "137"
          }
        },
        "rejecter": {
          "data": null
        },
        "origin": {
          "data": null
        }
      }
    },
    {
      "id": "2",
      "type": "bookings",
      "attributes": {
        "hours": 6,
        "time": 360,
        "started_on": "2020-10-21",
        "ended_on": "2020-10-21",
        "note": null,
        "total_time": 360,
        "percentage": null,
        "created_at": "2020-10-21T01:03:43.705+02:00",
        "updated_at": "2020-10-21T01:03:43.705+02:00",
        "people_custom_fields": null,
        "approved": false,
        "approved_at": null,
        "rejected": false,
        "rejected_reason": null,
        "rejected_at": null,
        "booking_method_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "service": {
          "data": null
        },
        "event": {
          "data": {
            "type": "events",
            "id": "1"
          }
        },
        "person": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "updater": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "approver": {
          "data": null
        },
        "rejecter": {
          "data": null
        },
        "origin": {
          "data": null
        }
      }
    },
    {
      "id": "3",
      "type": "bookings",
      "attributes": {
        "hours": 6,
        "time": 360,
        "started_on": "2020-10-21",
        "ended_on": "2020-10-21",
        "note": null,
        "total_time": 360,
        "percentage": null,
        "created_at": "2020-10-21T01:03:43.714+02:00",
        "updated_at": "2020-10-21T01:03:43.714+02:00",
        "people_custom_fields": null,
        "approved": false,
        "approved_at": null,
        "rejected": false,
        "rejected_reason": null,
        "rejected_at": null,
        "booking_method_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "service": {
          "data": null
        },
        "event": {
          "data": {
            "type": "events",
            "id": "1"
          }
        },
        "person": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "updater": {
          "data": {
            "type": "people",
            "id": "136"
          }
        },
        "approver": {
          "data": null
        },
        "rejecter": {
          "data": null
        },
        "origin": {
          "data": null
        }
      }
    }
  ],
  "included": [
    {
      "id": "1",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        }
      }
    },
    {
      "id": "136",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user137@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:43.000+02:00",
        "last_seen_at": "2020-10-21T01:03:43.727+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:43.428+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "198"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "137",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user138@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:43.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:43.605+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "199"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "198",
      "type": "companies",
      "attributes": {
        "name": "Organization68",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:43.426+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "199",
      "type": "companies",
      "attributes": {
        "name": "Client131",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:43.601+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 68
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "links": {
    "first": "http://www.example.com/api/v2/bookings?page%5Bnumber%5D=1&page%5Bsize%5D=30",
    "last": "http://www.example.com/api/v2/bookings?page%5Bnumber%5D=1&page%5Bsize%5D=30"
  },
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 3,
    "page_size": 30,
    "max_page_size": 200,
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Get bookings
GET/api/v2/bookings


GET /api/v2/bookings/1
Requestsreturns booking

GET  /api/v2/bookings/4

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "4",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:43.923+02:00",
      "updated_at": "2020-10-21T01:03:43.923+02:00",
      "people_custom_fields": null,
      "approved": false,
      "approved_at": null,
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 69
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "2"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "139"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "139"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "139"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "140"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "2",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 69
          }
        }
      }
    },
    {
      "id": "139",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user140@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:43.000+02:00",
        "last_seen_at": "2020-10-21T01:03:43.967+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:43.809+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 69
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "201"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "140",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user141@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:43.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:43.900+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 69
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "202"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "201",
      "type": "companies",
      "attributes": {
        "name": "Organization69",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:43.807+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 69
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "202",
      "type": "companies",
      "attributes": {
        "name": "Client133",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:43.896+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 69
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Gets a booking
GET/api/v2/bookings/{id}

URI Parameters
HideShow
id
number (required) Example: 1

booking id


POST /api/v2/bookings
Requestscreates the bookingcreates the bookingdoes not create the bookingcreates the bookingreturns errorcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingcreates the bookingreturns error

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "3"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "142"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "143"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "5",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:44.274+02:00",
      "updated_at": "2020-10-21T01:03:44.274+02:00",
      "people_custom_fields": null,
      "approved": false,
      "approved_at": null,
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 70
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "3"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "142"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "142"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "142"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "143"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "3",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 70
          }
        }
      }
    },
    {
      "id": "142",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user143@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:44.000+02:00",
        "last_seen_at": "2020-10-21T01:03:44.246+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:44.057+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 70
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "204"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "143",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user144@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:44.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:44.155+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 70
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "205"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "204",
      "type": "companies",
      "attributes": {
        "name": "Organization70",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:44.055+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 70
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "205",
      "type": "companies",
      "attributes": {
        "name": "Client135",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:44.151+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 70
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "4"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "145"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "146"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "6",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:44.572+02:00",
      "updated_at": "2020-10-21T01:03:44.572+02:00",
      "people_custom_fields": null,
      "approved": false,
      "approved_at": null,
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 71
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "4"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "145"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "145"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "145"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "146"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "4",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 71
          }
        }
      }
    },
    {
      "id": "145",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user146@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:44.000+02:00",
        "last_seen_at": "2020-10-21T01:03:44.554+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:44.395+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 71
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "207"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "146",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user147@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:44.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:44.494+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 71
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "208"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "207",
      "type": "companies",
      "attributes": {
        "name": "Organization71",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:44.393+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 71
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "208",
      "type": "companies",
      "attributes": {
        "name": "Client137",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:44.490+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 71
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "5"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "148"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "149"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "no useable event entitlements",
      "source": {
        "pointer": "data/attributes/event"
      }
    },
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "no bookable dates in range",
      "source": {
        "pointer": "data/attributes/event"
      }
    },
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "missing entitlement for 21/10/2020",
      "source": {
        "pointer": "data/attributes/event"
      }
    }
  ]
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "6"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "151"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "152"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "7",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:45.079+02:00",
      "updated_at": "2020-10-21T01:03:45.079+02:00",
      "people_custom_fields": null,
      "approved": false,
      "approved_at": null,
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 73
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "6"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "151"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "151"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "151"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "152"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "6",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 73
          }
        }
      }
    },
    {
      "id": "151",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user152@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:45.000+02:00",
        "last_seen_at": "2020-10-21T01:03:45.062+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:44.907+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 73
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "213"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "152",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user153@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:45.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:45.002+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 73
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "214"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "213",
      "type": "companies",
      "attributes": {
        "name": "Organization73",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:44.905+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 73
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "214",
      "type": "companies",
      "attributes": {
        "name": "Client141",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:44.998+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 73
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": ""
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "attribute is invalid",
      "source": {
        "pointer": "data/attributes/person"
      }
    }
  ]
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "8"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "158"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "157"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": "9"
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "10",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:45.621+02:00",
      "updated_at": "2020-10-21T01:03:45.627+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:45.626+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 75
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "8"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "158"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "157"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "157"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "157"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": "9"
        }
      }
    }
  },
  "included": [
    {
      "id": "8",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        }
      }
    },
    {
      "id": "158",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user159@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:45.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:45.442+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "220"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "157",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user158@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:45.000+02:00",
        "last_seen_at": "2020-10-21T01:03:45.593+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:45.419+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "219"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "9",
      "type": "bookings",
      "attributes": {
        "hours": 6,
        "time": 360,
        "started_on": "2020-10-21",
        "ended_on": "2020-10-21",
        "note": null,
        "total_time": 0,
        "percentage": null,
        "created_at": "2020-10-21T01:03:45.568+02:00",
        "updated_at": "2020-10-21T01:03:45.568+02:00",
        "people_custom_fields": null,
        "approved": false,
        "approved_at": null,
        "rejected": false,
        "rejected_reason": null,
        "rejected_at": null,
        "booking_method_id": 1
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "service": {
          "data": null
        },
        "event": {
          "data": {
            "type": "events",
            "id": "8"
          }
        },
        "person": {
          "data": {
            "type": "people",
            "id": "157"
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "157"
          }
        },
        "updater": {
          "data": {
            "type": "people",
            "id": "157"
          }
        },
        "approver": {
          "data": {
            "type": "people",
            "id": "159"
          }
        },
        "rejecter": {
          "data": null
        },
        "origin": {
          "data": null
        }
      }
    },
    {
      "id": "220",
      "type": "companies",
      "attributes": {
        "name": "Client145",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:45.438+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "219",
      "type": "companies",
      "attributes": {
        "name": "Organization75",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:45.417+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "159",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user160@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:45.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:45.544+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "221"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "221",
      "type": "companies",
      "attributes": {
        "name": "Client146",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:45.540+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 75
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 21, 2020",
      "time": 360
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "9"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "162"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "162"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": "11"
        }
      }
    }
  }
}
Responses404
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "404",
      "code": "record_not_found",
      "title": "Record Not Found",
      "detail": "The requested record was not found",
      "source": {
        "pointer": null
      }
    }
  ]
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": null,
      "percentage": null,
      "booking_method_id": null
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "10"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "163"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "12",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 1080,
      "percentage": null,
      "created_at": "2020-10-21T01:03:46.300+02:00",
      "updated_at": "2020-10-21T01:03:46.311+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:46.309+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 77
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "10"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "163"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "163"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "163"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "163"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "10",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 77
          }
        }
      }
    },
    {
      "id": "163",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user165@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:46.000+02:00",
        "last_seen_at": "2020-10-21T01:03:46.280+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:46.047+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 77
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "226"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "226",
      "type": "companies",
      "attributes": {
        "name": "Organization77",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:46.046+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 77
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": null,
      "percentage": null,
      "booking_method_id": 1
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "11"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "167"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "13",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 1080,
      "percentage": null,
      "created_at": "2020-10-21T01:03:46.643+02:00",
      "updated_at": "2020-10-21T01:03:46.651+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:46.650+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 78
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "11"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "167"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "167"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "167"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "167"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "11",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 78
          }
        }
      }
    },
    {
      "id": "167",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user169@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:46.000+02:00",
        "last_seen_at": "2020-10-21T01:03:46.627+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:46.423+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 78
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "230"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "230",
      "type": "companies",
      "attributes": {
        "name": "Organization78",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:46.422+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 78
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 27, 2020",
      "time": 360,
      "total_time": null,
      "percentage": 50,
      "booking_method_id": 2
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "12"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "171"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "14",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-27",
      "note": null,
      "total_time": 1680,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:46.976+02:00",
      "updated_at": "2020-10-21T01:03:46.986+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:46.985+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 79
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "12"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "171"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "171"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "171"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "171"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "12",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 79
          }
        }
      }
    },
    {
      "id": "171",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user173@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:46.000+02:00",
        "last_seen_at": "2020-10-21T01:03:46.961+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:46.766+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 79
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "234"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "234",
      "type": "companies",
      "attributes": {
        "name": "Organization79",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:46.765+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 79
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 27, 2020",
      "time": 360,
      "total_time": null,
      "percentage": 50,
      "booking_method_id": 2
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "13"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "175"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "15",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-27",
      "note": null,
      "total_time": 1530,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:47.293+02:00",
      "updated_at": "2020-10-21T01:03:47.303+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:47.302+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 80
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "13"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "175"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "175"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "175"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "175"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "13",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 80
          }
        }
      }
    },
    {
      "id": "175",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user177@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:47.000+02:00",
        "last_seen_at": "2020-10-21T01:03:47.279+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:47.086+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 80
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "238"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "238",
      "type": "companies",
      "attributes": {
        "name": "Organization80",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:47.084+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 80
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 27, 2020",
      "time": 360,
      "total_time": null,
      "percentage": 50,
      "booking_method_id": 2
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "14"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "179"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "16",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-27",
      "note": null,
      "total_time": 1440,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:47.642+02:00",
      "updated_at": "2020-10-21T01:03:47.652+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:47.650+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 81
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "14"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "179"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "179"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "179"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "179"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "14",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 81
          }
        }
      }
    },
    {
      "id": "179",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user181@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:47.000+02:00",
        "last_seen_at": "2020-10-21T01:03:47.626+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:47.411+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 81
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "242"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "242",
      "type": "companies",
      "attributes": {
        "name": "Organization81",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:47.410+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 81
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": 360,
      "percentage": null,
      "booking_method_id": 3
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "15"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "183"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "17",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:47.955+02:00",
      "updated_at": "2020-10-21T01:03:47.964+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:47.963+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 82
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "15"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "183"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "183"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "183"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "183"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "15",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 82
          }
        }
      }
    },
    {
      "id": "183",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user185@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:47.000+02:00",
        "last_seen_at": "2020-10-21T01:03:47.942+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:47.752+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 82
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "246"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "246",
      "type": "companies",
      "attributes": {
        "name": "Organization82",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:47.750+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 82
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": 10000,
      "percentage": null,
      "booking_method_id": 3
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "16"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "187"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "18",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 10000,
      "percentage": null,
      "created_at": "2020-10-21T01:03:48.299+02:00",
      "updated_at": "2020-10-21T01:03:48.309+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:48.307+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 83
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "16"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "187"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "187"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "187"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "187"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "16",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 83
          }
        }
      }
    },
    {
      "id": "187",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user189@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:48.000+02:00",
        "last_seen_at": "2020-10-21T01:03:48.285+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:48.073+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 83
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "250"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "250",
      "type": "companies",
      "attributes": {
        "name": "Organization83",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:48.072+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 83
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": null,
      "percentage": null,
      "booking_method_id": 1
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "17"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "192"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "19",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 720,
      "percentage": null,
      "created_at": "2020-10-21T01:03:48.659+02:00",
      "updated_at": "2020-10-21T01:03:48.668+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:48.667+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 84
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "17"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "192"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "191"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "191"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "191"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "17",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        }
      }
    },
    {
      "id": "192",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user194@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:48.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:48.443+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "255"
          }
        },
        "subsidiary": {
          "data": {
            "type": "subsidiaries",
            "id": "1"
          }
        }
      }
    },
    {
      "id": "191",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user193@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:48.000+02:00",
        "last_seen_at": "2020-10-21T01:03:48.629+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:48.409+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "254"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "255",
      "type": "companies",
      "attributes": {
        "name": "Client171",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:48.439+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "1",
      "type": "subsidiaries",
      "attributes": {
        "name": "Subsidiary1",
        "invoice_number_format": null,
        "archived_at": null,
        "export_integration_type_id": null,
        "invoice_logo_url": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        },
        "bill_from": {
          "data": null
        },
        "integration": {
          "data": null
        }
      }
    },
    {
      "id": "254",
      "type": "companies",
      "attributes": {
        "name": "Organization84",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:48.408+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 84
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": null,
      "percentage": 50,
      "booking_method_id": 2
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "18"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "197"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "20",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 480,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:48.987+02:00",
      "updated_at": "2020-10-21T01:03:48.995+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:48.994+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 85
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "18"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "197"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "196"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "196"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "196"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "18",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        }
      }
    },
    {
      "id": "197",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user199@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:48.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:48.809+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "260"
          }
        },
        "subsidiary": {
          "data": {
            "type": "subsidiaries",
            "id": "2"
          }
        }
      }
    },
    {
      "id": "196",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user198@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:48.000+02:00",
        "last_seen_at": "2020-10-21T01:03:48.973+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:48.785+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "259"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "260",
      "type": "companies",
      "attributes": {
        "name": "Client175",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:48.806+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "2",
      "type": "subsidiaries",
      "attributes": {
        "name": "Subsidiary2",
        "invoice_number_format": null,
        "archived_at": null,
        "export_integration_type_id": null,
        "invoice_logo_url": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        },
        "bill_from": {
          "data": null
        },
        "integration": {
          "data": null
        }
      }
    },
    {
      "id": "259",
      "type": "companies",
      "attributes": {
        "name": "Organization85",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:48.783+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 85
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "started_on": "Oct 21, 2020",
      "ended_on": "Oct 23, 2020",
      "time": 360,
      "total_time": 360,
      "percentage": null,
      "booking_method_id": 3
    },
    "relationships": {
      "event": {
        "data": {
          "type": "events",
          "id": "19"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "202"
        }
      },
      "origin": {
        "data": {
          "type": "bookings",
          "id": ""
        }
      }
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "21",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:49.318+02:00",
      "updated_at": "2020-10-21T01:03:49.327+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:49.326+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 86
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "19"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "202"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "201"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "201"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "201"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "19",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        }
      }
    },
    {
      "id": "202",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user204@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:49.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:49.133+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "265"
          }
        },
        "subsidiary": {
          "data": {
            "type": "subsidiaries",
            "id": "3"
          }
        }
      }
    },
    {
      "id": "201",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user203@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:49.000+02:00",
        "last_seen_at": "2020-10-21T01:03:49.305+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:49.109+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "264"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "265",
      "type": "companies",
      "attributes": {
        "name": "Client179",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:49.130+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "3",
      "type": "subsidiaries",
      "attributes": {
        "name": "Subsidiary3",
        "invoice_number_format": null,
        "archived_at": null,
        "export_integration_type_id": null,
        "invoice_logo_url": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        },
        "bill_from": {
          "data": null
        },
        "integration": {
          "data": null
        }
      }
    },
    {
      "id": "264",
      "type": "companies",
      "attributes": {
        "name": "Organization86",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:49.108+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 86
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/bookings

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": ""
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "attribute is invalid",
      "source": {
        "pointer": "data/attributes/person"
      }
    }
  ]
}

Create a booking
POST/api/v2/bookings

URI Parameters
HideShow
person_id
number (required) Example: 1

person id

started_on
date (required) Example: 2018-01-01

started on

ended_on
date (required) Example: 2018-01-31

ended on

time
number (required) Example: 60

time


PATCH /api/v2/bookings/1
Requestsupdates bookingreturns errorupdates bookingupdates bookingupdates bookingupdates bookingupdates bookingupdates bookingupdates bookingupdates bookingupdates booking

PATCH  /api/v2/bookings/23

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": 120
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "23",
    "type": "bookings",
    "attributes": {
      "hours": 2,
      "time": 120,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:49.782+02:00",
      "updated_at": "2020-10-21T01:03:49.871+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:49.776+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 88
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "21"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "209"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "209"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "209"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "210"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "21",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 88
          }
        }
      }
    },
    {
      "id": "209",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user211@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:49.000+02:00",
        "last_seen_at": "2020-10-21T01:03:49.850+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:49.658+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 88
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "272"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "210",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user212@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 2,
        "invited_at": "2020-10-21T01:03:49.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:49.756+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 88
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "273"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "272",
      "type": "companies",
      "attributes": {
        "name": "Organization88",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:49.656+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 88
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "273",
      "type": "companies",
      "attributes": {
        "name": "Client185",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:49.752+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 88
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/24

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": ""
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "is not a number",
      "source": {
        "pointer": "data/attributes/time"
      }
    },
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't be blank",
      "source": {
        "pointer": "data/attributes/time"
      }
    }
  ]
}

PATCH  /api/v2/bookings/25

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": 120,
      "booking_method_id": 1
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "25",
    "type": "bookings",
    "attributes": {
      "hours": 2,
      "time": 120,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:50.351+02:00",
      "updated_at": "2020-10-21T01:03:50.464+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:50.319+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 90
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "23"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "215"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "215"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "215"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "216"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "23",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 90
          }
        }
      }
    },
    {
      "id": "215",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user217@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:50.000+02:00",
        "last_seen_at": "2020-10-21T01:03:50.444+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:50.229+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 90
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "278"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "216",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user218@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:50.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:50.326+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 90
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "279"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "278",
      "type": "companies",
      "attributes": {
        "name": "Organization90",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:50.228+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 90
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "279",
      "type": "companies",
      "attributes": {
        "name": "Client189",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:50.323+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 90
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/26

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "percentage": 50,
      "booking_method_id": 2
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "26",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 540,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:50.709+02:00",
      "updated_at": "2020-10-21T01:03:50.813+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:50.677+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 91
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "24"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "219"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "219"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "219"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "220"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "24",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 91
          }
        }
      }
    },
    {
      "id": "219",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user221@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:50.000+02:00",
        "last_seen_at": "2020-10-21T01:03:50.793+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:50.588+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 91
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "282"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "220",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user222@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:50.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:50.685+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 91
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "283"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "282",
      "type": "companies",
      "attributes": {
        "name": "Organization91",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:50.586+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 91
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "283",
      "type": "companies",
      "attributes": {
        "name": "Client192",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:50.681+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 91
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/27

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "total_time": 900,
      "booking_method_id": 3
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "27",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 900,
      "percentage": null,
      "created_at": "2020-10-21T01:03:51.078+02:00",
      "updated_at": "2020-10-21T01:03:51.186+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:51.045+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 92
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "25"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "223"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "223"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "223"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "224"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "25",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 92
          }
        }
      }
    },
    {
      "id": "223",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user225@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:51.000+02:00",
        "last_seen_at": "2020-10-21T01:03:51.165+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:50.954+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 92
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "286"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "224",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user226@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:51.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:51.053+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 92
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "287"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "286",
      "type": "companies",
      "attributes": {
        "name": "Organization92",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:50.952+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 92
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "287",
      "type": "companies",
      "attributes": {
        "name": "Client195",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:51.049+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 92
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/28

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "percentage": 10,
      "booking_method_id": 2
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "28",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 144,
      "percentage": 10,
      "created_at": "2020-10-21T01:03:51.516+02:00",
      "updated_at": "2020-10-21T01:03:51.575+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:51.412+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 93
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "26"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "227"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "227"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "227"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "228"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "26",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 93
          }
        }
      }
    },
    {
      "id": "227",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user229@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:51.000+02:00",
        "last_seen_at": "2020-10-21T01:03:51.551+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:51.322+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 93
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "290"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "228",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user230@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:51.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:51.421+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 93
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "291"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "290",
      "type": "companies",
      "attributes": {
        "name": "Organization93",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:51.320+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 93
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "291",
      "type": "companies",
      "attributes": {
        "name": "Client198",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:51.417+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 93
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/29

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": 350,
      "booking_method_id": 1
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "29",
    "type": "bookings",
    "attributes": {
      "hours": 5,
      "time": 350,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 1050,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:51.890+02:00",
      "updated_at": "2020-10-21T01:03:51.947+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:51.800+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 94
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "27"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "231"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "231"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "231"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "232"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "27",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 94
          }
        }
      }
    },
    {
      "id": "231",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user233@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:51.000+02:00",
        "last_seen_at": "2020-10-21T01:03:51.926+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:51.706+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 94
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "294"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "232",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user234@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:51.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:51.808+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 94
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "295"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "294",
      "type": "companies",
      "attributes": {
        "name": "Organization94",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:51.705+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 94
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "295",
      "type": "companies",
      "attributes": {
        "name": "Client201",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:51.804+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 94
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/30

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "total_time": 750,
      "booking_method_id": 3
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "30",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 750,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:52.291+02:00",
      "updated_at": "2020-10-21T01:03:52.375+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:52.191+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 95
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "28"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "235"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "235"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "235"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "236"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "28",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 95
          }
        }
      }
    },
    {
      "id": "235",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user237@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:52.000+02:00",
        "last_seen_at": "2020-10-21T01:03:52.342+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:52.093+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 95
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "298"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "236",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user238@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:52.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:52.200+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 95
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "299"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "298",
      "type": "companies",
      "attributes": {
        "name": "Organization95",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:52.092+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 95
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "299",
      "type": "companies",
      "attributes": {
        "name": "Client204",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:52.196+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 95
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/31

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "total_time": 900,
      "booking_method_id": 3
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "31",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 900,
      "percentage": null,
      "created_at": "2020-10-21T01:03:52.823+02:00",
      "updated_at": "2020-10-21T01:03:52.882+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:52.734+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 3
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 96
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "29"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "239"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "239"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "239"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "240"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "29",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 96
          }
        }
      }
    },
    {
      "id": "239",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user241@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:52.000+02:00",
        "last_seen_at": "2020-10-21T01:03:52.860+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:52.601+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 96
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "302"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "240",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user242@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:52.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:52.742+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 96
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "303"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "302",
      "type": "companies",
      "attributes": {
        "name": "Organization96",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:52.599+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 96
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "303",
      "type": "companies",
      "attributes": {
        "name": "Client207",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:52.738+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 96
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/32

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "time": 245,
      "booking_method_id": 1
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "32",
    "type": "bookings",
    "attributes": {
      "hours": 4,
      "time": 245,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 735,
      "percentage": null,
      "created_at": "2020-10-21T01:03:53.205+02:00",
      "updated_at": "2020-10-21T01:03:53.269+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:53.108+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 97
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "30"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "243"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "243"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "243"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "244"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "30",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 97
          }
        }
      }
    },
    {
      "id": "243",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user245@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:53.000+02:00",
        "last_seen_at": "2020-10-21T01:03:53.245+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:53.016+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 97
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "306"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "244",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user246@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:53.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:53.117+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 97
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "307"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "306",
      "type": "companies",
      "attributes": {
        "name": "Organization97",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:53.015+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 97
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "307",
      "type": "companies",
      "attributes": {
        "name": "Client210",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:53.113+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 97
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/bookings/33

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Body
{
  "data": {
    "type": "bookings",
    "attributes": {
      "percentage": 50,
      "booking_method_id": 2
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "33",
    "type": "bookings",
    "attributes": {
      "hours": null,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 720,
      "percentage": 50,
      "created_at": "2020-10-21T01:03:53.611+02:00",
      "updated_at": "2020-10-21T01:03:53.676+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:53.517+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 2
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 98
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "31"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "247"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "247"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "247"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "248"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "31",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 98
          }
        }
      }
    },
    {
      "id": "247",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user249@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:53.000+02:00",
        "last_seen_at": "2020-10-21T01:03:53.648+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:53.410+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 98
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "310"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "248",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user250@email.com",
        "title": null,
        "joined_at": null,
        "last_seen_at": null,
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 3,
        "invited_at": "2020-10-21T01:03:53.000+02:00",
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:53.526+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 98
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "311"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "310",
      "type": "companies",
      "attributes": {
        "name": "Organization98",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:53.408+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 98
          }
        },
        "bill_to": {
          "data": null
        }
      }
    },
    {
      "id": "311",
      "type": "companies",
      "attributes": {
        "name": "Client213",
        "billing_name": null,
        "vat": null,
        "default_currency": null,
        "created_at": "2020-10-21T01:03:53.522+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 98
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Update a booking
PATCH/api/v2/bookings/{id}

URI Parameters
HideShow
id
number (required) Example: 1

booking id


DELETE /api/v2/bookings/1
Requestsdeletes booking

DELETE  /api/v2/bookings/34

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses204
This response has no content.

Deletes a booking
DELETE/api/v2/bookings/{id}

URI Parameters
HideShow
id
number (required) Example: 1

booking id


PATCH /api/v2/bookings/1/approve
Requestsapproves booking

PATCH  /api/v2/bookings/36/approve

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "36",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-23",
      "note": null,
      "total_time": 1080,
      "percentage": null,
      "created_at": "2020-10-21T01:03:54.377+02:00",
      "updated_at": "2020-10-21T01:03:54.465+02:00",
      "people_custom_fields": null,
      "approved": true,
      "approved_at": "2020-10-21T01:03:54.455+02:00",
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 101
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "34"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "258"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "258"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "258"
        }
      },
      "approver": {
        "data": {
          "type": "people",
          "id": "258"
        }
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "34",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 101
          }
        }
      }
    },
    {
      "id": "258",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user260@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:54.000+02:00",
        "last_seen_at": "2020-10-21T01:03:54.452+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:54.277+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 101
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "321"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "321",
      "type": "companies",
      "attributes": {
        "name": "Organization101",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:54.275+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 101
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Approves a booking
PATCH/api/v2/bookings/{id}/approve

URI Parameters
HideShow
id
number (required) Example: 1

booking id


PATCH /api/v2/bookings/1/unapprove
Requestsunapproves booking

PATCH  /api/v2/bookings/39/unapprove

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "39",
    "type": "bookings",
    "attributes": {
      "hours": 6,
      "time": 360,
      "started_on": "2020-10-21",
      "ended_on": "2020-10-21",
      "note": null,
      "total_time": 360,
      "percentage": null,
      "created_at": "2020-10-21T01:03:54.899+02:00",
      "updated_at": "2020-10-21T01:03:54.987+02:00",
      "people_custom_fields": null,
      "approved": false,
      "approved_at": null,
      "rejected": false,
      "rejected_reason": null,
      "rejected_at": null,
      "booking_method_id": 1
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 103
        }
      },
      "service": {
        "data": null
      },
      "event": {
        "data": {
          "type": "events",
          "id": "36"
        }
      },
      "person": {
        "data": {
          "type": "people",
          "id": "264"
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "264"
        }
      },
      "updater": {
        "data": {
          "type": "people",
          "id": "264"
        }
      },
      "approver": {
        "data": null
      },
      "rejecter": {
        "data": null
      },
      "origin": {
        "data": null
      }
    }
  },
  "included": [
    {
      "id": "36",
      "type": "events",
      "attributes": {
        "name": "test name",
        "event_type_id": 2,
        "icon_id": null,
        "limited": false,
        "color_id": null,
        "archived_at": null,
        "limitation_type_id": 2
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 103
          }
        }
      }
    },
    {
      "id": "264",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user266@email.com",
        "title": null,
        "joined_at": "2020-10-21T01:03:54.000+02:00",
        "last_seen_at": "2020-10-21T01:03:54.976+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-10-21T01:03:54.781+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 103
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "327"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "327",
      "type": "companies",
      "attributes": {
        "name": "Organization103",
        "billing_name": null,
        "vat": null,
        "default_currency": "USD",
        "created_at": "2020-10-21T01:03:54.779+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": [],
        "contact": {}
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 103
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      },
      "duplicate_tasks": {
        "type": "switch",
        "available": true
      },
      "billable_time_rounding": {
        "type": "switch",
        "available": true
      },
      "payment_sync": {
        "type": "switch",
        "available": true
      },
      "booking_methods": {
        "type": "switch",
        "available": true
      },
      "import_tasks_csv": {
        "type": "switch",
        "available": true
      },
      "reactions": {
        "type": "switch",
        "available": true
      },
      "time_week_view": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Unapproves a booking
PATCH/api/v2/bookings/{id}/unapprove

URI Parameters
HideShow
id
number (required) Example: 1

booking id


Generated by aglio on 20 Oct 2020