API Documentation
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
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
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": [
{
"id": "1",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:22.883+01:00",
"updated_at": "2021-01-24T00:03:22.883+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
{
"id": "2",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:22.942+01:00",
"updated_at": "2021-01-24T00:03:22.942+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
{
"id": "3",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:22.955+01:00",
"updated_at": "2021-01-24T00:03:22.955+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
}
],
"included": [
{
"id": "1",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:22.000+01:00",
"last_seen_at": "2021-01-24T00:03:22.971+01: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": "2021-01-24T00:03:22.661+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:22.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:22.819+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:22.660+01: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": "2021-01-24T00:03:22.815+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
Get bookingsGET/api/v2/bookings
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
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "4",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:23.289+01:00",
"updated_at": "2021-01-24T00:03:23.289+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "2",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:23.000+01:00",
"last_seen_at": "2021-01-24T00:03:23.379+01: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": "2021-01-24T00:03:23.120+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:23.248+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.119+01: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": "2021-01-24T00:03:23.244+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "5",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:23.674+01:00",
"updated_at": "2021-01-24T00:03:23.674+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "3",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:23.000+01:00",
"last_seen_at": "2021-01-24T00:03:23.647+01: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": "2021-01-24T00:03:23.453+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:23.551+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.452+01: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": "2021-01-24T00:03:23.548+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "6",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:24.013+01:00",
"updated_at": "2021-01-24T00:03:24.013+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "4",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:23.000+01:00",
"last_seen_at": "2021-01-24T00:03:23.997+01: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": "2021-01-24T00:03:23.833+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:23.926+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:23.831+01: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": "2021-01-24T00:03:23.922+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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": ""
}
}
}
}
}
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 24/01/2021",
"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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "7",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:24.540+01:00",
"updated_at": "2021-01-24T00:03:24.540+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "6",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:24.000+01:00",
"last_seen_at": "2021-01-24T00:03:24.526+01: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": "2021-01-24T00:03:24.363+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:24.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:24.456+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:24.362+01: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": "2021-01-24T00:03:24.452+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": ""
}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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"
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "10",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 360,
"total_working_days": 1,
"percentage": null,
"created_at": "2021-01-24T00:03:25.231+01:00",
"updated_at": "2021-01-24T00:03:25.238+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:25.237+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": {
"type": "bookings",
"id": "9"
}
}
}
},
"included": [
{
"id": "8",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:24.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:24.990+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:25.000+01:00",
"last_seen_at": "2021-01-24T00:03:25.204+01: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": "2021-01-24T00:03:24.945+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24",
"ended_on": "2021-01-24",
"note": null,
"total_time": 0,
"total_working_days": 0,
"percentage": null,
"created_at": "2021-01-24T00:03:25.175+01:00",
"updated_at": "2021-01-24T00:03:25.175+01:00",
"people_custom_fields": null,
"approved": false,
"approved_at": null,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
{
"id": "220",
"type": "companies",
"attributes": {
"name": "Client145",
"billing_name": null,
"vat": null,
"default_currency": null,
"created_at": "2021-01-24T00:03:24.984+01: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": "2021-01-24T00:03:24.943+01: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": "2021-01-24T00:03:25.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:25.135+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:25.131+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 24, 2021",
"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"
}
}
}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "12",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 1080,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:25.908+01:00",
"updated_at": "2021-01-24T00:03:25.917+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:25.916+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "10",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:25.000+01:00",
"last_seen_at": "2021-01-24T00:03:25.896+01: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": "2021-01-24T00:03:25.691+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:25.690+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "13",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 1080,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:26.229+01:00",
"updated_at": "2021-01-24T00:03:26.237+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:26.236+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "11",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:26.000+01:00",
"last_seen_at": "2021-01-24T00:03:26.217+01: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": "2021-01-24T00:03:26.014+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:26.013+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 30, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "14",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-30",
"note": null,
"total_time": 1680,
"total_working_days": 7,
"percentage": 50,
"created_at": "2021-01-24T00:03:26.559+01:00",
"updated_at": "2021-01-24T00:03:26.568+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:26.567+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "12",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:26.000+01:00",
"last_seen_at": "2021-01-24T00:03:26.546+01: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": "2021-01-24T00:03:26.337+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:26.336+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 30, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "15",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-30",
"note": null,
"total_time": 1530,
"total_working_days": 7,
"percentage": 50,
"created_at": "2021-01-24T00:03:26.901+01:00",
"updated_at": "2021-01-24T00:03:26.910+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:26.908+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "13",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:26.000+01:00",
"last_seen_at": "2021-01-24T00:03:26.889+01: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": "2021-01-24T00:03:26.682+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:26.681+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 30, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "16",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-30",
"note": null,
"total_time": 1440,
"total_working_days": 7,
"percentage": 50,
"created_at": "2021-01-24T00:03:27.248+01:00",
"updated_at": "2021-01-24T00:03:27.259+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:27.257+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "14",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:27.000+01:00",
"last_seen_at": "2021-01-24T00:03:27.232+01: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": "2021-01-24T00:03:27.006+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:27.005+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "17",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 360,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:27.570+01:00",
"updated_at": "2021-01-24T00:03:27.581+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:27.580+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "15",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:27.000+01:00",
"last_seen_at": "2021-01-24T00:03:27.557+01: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": "2021-01-24T00:03:27.356+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:27.355+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "18",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 10000,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:27.911+01:00",
"updated_at": "2021-01-24T00:03:27.922+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:27.921+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "16",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:27.000+01:00",
"last_seen_at": "2021-01-24T00:03:27.898+01: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": "2021-01-24T00:03:27.685+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:27.684+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "19",
"type": "bookings",
"attributes": {
"hours": 6,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 720,
"total_working_days": 2,
"percentage": null,
"created_at": "2021-01-24T00:03:28.240+01:00",
"updated_at": "2021-01-24T00:03:28.248+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:28.247+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "17",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:28.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:28.055+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.000+01:00",
"last_seen_at": "2021-01-24T00:03:28.229+01: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": "2021-01-24T00:03:28.020+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.051+01: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": "2021-01-24T00:03:28.019+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "20",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 480,
"total_working_days": 2,
"percentage": 50,
"created_at": "2021-01-24T00:03:28.591+01:00",
"updated_at": "2021-01-24T00:03:28.599+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:28.597+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "18",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:28.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:28.394+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.000+01:00",
"last_seen_at": "2021-01-24T00:03:28.577+01: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": "2021-01-24T00:03:28.363+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.390+01: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": "2021-01-24T00:03:28.361+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": "Jan 24, 2021",
"ended_on": "Jan 26, 2021",
"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": ""
}
}
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "21",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 360,
"total_working_days": 2,
"percentage": null,
"created_at": "2021-01-24T00:03:28.951+01:00",
"updated_at": "2021-01-24T00:03:28.959+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:28.958+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "19",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:28.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:28.751+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.000+01:00",
"last_seen_at": "2021-01-24T00:03:28.939+01: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": "2021-01-24T00:03:28.722+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:28.747+01: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": "2021-01-24T00:03:28.720+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": ""
}
}
}
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 bookingPOST/api/v2/bookings
- person_id
number
(required) Example: 1person id
- started_on
date
(required) Example: 2018-01-01started on
- ended_on
date
(required) Example: 2018-01-31ended on
- time
number
(required) Example: 60time
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "23",
"type": "bookings",
"attributes": {
"hours": 2,
"time": 120,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 360,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:29.406+01:00",
"updated_at": "2021-01-24T00:03:29.487+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:29.399+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "21",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:29.000+01:00",
"last_seen_at": "2021-01-24T00:03:29.467+01: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": "2021-01-24T00:03:29.288+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:29.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:29.376+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:29.286+01: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": "2021-01-24T00:03:29.372+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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": ""
}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "25",
"type": "bookings",
"attributes": {
"hours": 2,
"time": 120,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 360,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:29.994+01:00",
"updated_at": "2021-01-24T00:03:30.104+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:29.957+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "23",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:30.000+01:00",
"last_seen_at": "2021-01-24T00:03:30.086+01: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": "2021-01-24T00:03:29.858+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:29.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:29.964+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:29.857+01: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": "2021-01-24T00:03:29.961+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "26",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 540,
"total_working_days": 3,
"percentage": 50,
"created_at": "2021-01-24T00:03:30.357+01:00",
"updated_at": "2021-01-24T00:03:30.471+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:30.320+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "24",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:30.000+01:00",
"last_seen_at": "2021-01-24T00:03:30.450+01: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": "2021-01-24T00:03:30.235+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:30.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:30.328+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:30.233+01: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": "2021-01-24T00:03:30.324+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "27",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 900,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:30.728+01:00",
"updated_at": "2021-01-24T00:03:30.847+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:30.690+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "25",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:30.000+01:00",
"last_seen_at": "2021-01-24T00:03:30.827+01: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": "2021-01-24T00:03:30.604+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:30.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:30.698+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:30.602+01: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": "2021-01-24T00:03:30.694+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "28",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 144,
"total_working_days": 3,
"percentage": 10,
"created_at": "2021-01-24T00:03:31.188+01:00",
"updated_at": "2021-01-24T00:03:31.243+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:31.080+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "26",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:31.000+01:00",
"last_seen_at": "2021-01-24T00:03:31.222+01: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": "2021-01-24T00:03:30.996+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:31.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:31.088+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:30.995+01: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": "2021-01-24T00:03:31.084+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "29",
"type": "bookings",
"attributes": {
"hours": 5,
"time": 350,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 1050,
"total_working_days": 3,
"percentage": 50,
"created_at": "2021-01-24T00:03:31.563+01:00",
"updated_at": "2021-01-24T00:03:31.617+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:31.453+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "27",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:31.000+01:00",
"last_seen_at": "2021-01-24T00:03:31.597+01: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": "2021-01-24T00:03:31.372+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:31.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:31.460+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:31.370+01: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": "2021-01-24T00:03:31.457+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "30",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 750,
"total_working_days": 3,
"percentage": 50,
"created_at": "2021-01-24T00:03:31.940+01:00",
"updated_at": "2021-01-24T00:03:32.002+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:31.834+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "28",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:31.000+01:00",
"last_seen_at": "2021-01-24T00:03:31.983+01: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": "2021-01-24T00:03:31.750+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:31.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:31.842+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:31.749+01: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": "2021-01-24T00:03:31.838+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "31",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 900,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:32.326+01:00",
"updated_at": "2021-01-24T00:03:32.380+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:32.215+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "29",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:32.000+01:00",
"last_seen_at": "2021-01-24T00:03:32.361+01: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": "2021-01-24T00:03:32.135+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:32.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:32.224+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:32.134+01: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": "2021-01-24T00:03:32.220+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "32",
"type": "bookings",
"attributes": {
"hours": 4,
"time": 245,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 735,
"total_working_days": 3,
"percentage": null,
"created_at": "2021-01-24T00:03:32.710+01:00",
"updated_at": "2021-01-24T00:03:32.765+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:32.598+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "30",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:32.000+01:00",
"last_seen_at": "2021-01-24T00:03:32.746+01: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": "2021-01-24T00:03:32.514+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:32.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:32.605+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:32.513+01: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": "2021-01-24T00:03:32.602+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"theming": {
"type": "switch",
"available": true
},
"remove_branding": {
"type": "switch",
"available": true
},
"custom_invoicing_email": {
"type": "switch",
"available": true
},
"google_calendar_layout": {
"type": "switch",
"available": true
}
},
"settings": {}
}
}
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
}
}
}
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
"data": {
"id": "33",
"type": "bookings",
"attributes": {
"hours": null,
"time": 360,
"started_on": "2021-01-24",
"ended_on": "2021-01-26",
"note": null,
"total_time": 720,
"total_working_days": 3,
"percentage": 50,
"created_at": "2021-01-24T00:03:33.106+01:00",
"updated_at": "2021-01-24T00:03:33.162+01:00",
"people_custom_fields": null,
"approved": true,
"approved_at": "2021-01-24T00:03:32.999+01:00",
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"canceled": false,
"canceled_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
},
"canceler": {
"data": null
},
"origin": {
"data": null
}
}
},
"included": [
{
"id": "31",
"type": "events",
"attributes": {
"name": "test name",
"event_type_id": 2,
"icon_id": null,
"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": "2021-01-24T00:03:33.000+01:00",
"last_seen_at": "2021-01-24T00:03:33.141+01: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": "2021-01-24T00:03:32.915+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:33.000+01:00",
"is_user": true,
"tag_list": [],
"avatar_url": null,
"virtual": false,
"custom_fields": null,
"autotracking": false,
"created_at": "2021-01-24T00:03:33.007+01:00",
"placeholder": false,
"color_id": null,
"private_custom_reports_used": 0,
"contact": {}
},
"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": "2021-01-24T00:03:32.914+01: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": "2021-01-24T00:03:33.003+01: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": 100,
"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
},
"subtasks": {
"type": "switch",
"available": true
},
"time_calendar_layout": {
"type": "switch",
"available": true
},
"