API Documentation
Deleted Items ¶
Deleted Items ¶
The Deleted item object represents an deleted object (e.g., Task, Project, Doc) that can be found in the Recycle bin.
Deleted items can be restored, meaning the object they reference will be restored and it will disappear from the Recycle bin. They can also be permanently deleted, meaning the object they reference will no longer be able to be retrieved from the Recycle bin.
You can find out more about Recycle bin in our Help documentation for Recycle bin
Supported filter params
-
id
-
item_type
-
deleter_id
-
name
-
location
-
created_at (date)
Supported item types
-
booking
-
budget
-
dashboard
-
deal
-
event
-
expense
-
invoice
-
page
-
project
-
purchase_order
-
service
-
task
-
template
-
time_entry
GET /api/v2/deleted_items
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": "8",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.451+02:00",
"deleter_id": 1259,
"item_id": 188,
"item_type": "project",
"location": "My organization",
"name": "test project",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "9",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.508+02:00",
"deleter_id": 1261,
"item_id": 328,
"item_type": "deal",
"location": "Company: Client525",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "10",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.599+02:00",
"deleter_id": 1264,
"item_id": 329,
"item_type": "budget",
"location": "Project: test project",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "11",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.635+02:00",
"deleter_id": 1265,
"item_id": 2,
"item_type": "invoice",
"location": "Company: Client528",
"name": "Invoice - 2016/01",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "12",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.732+02:00",
"deleter_id": 1269,
"item_id": 31,
"item_type": "task",
"location": "Project: test project",
"name": "Ticket title",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "13",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.815+02:00",
"deleter_id": 1271,
"item_id": 201,
"item_type": "service",
"location": "test name",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "14",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:48.863+02:00",
"deleter_id": 1273,
"item_id": 21,
"item_type": "dashboard",
"location": "My organization",
"name": "Dashboard q",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "15",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:49.019+02:00",
"deleter_id": 1277,
"item_id": 6,
"item_type": "time_entry",
"location": "test project / test name / test name",
"name": "name surname - Oct 3 2025 - 08:00",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
{
"id": "16",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:49.103+02:00",
"deleter_id": 1279,
"item_id": 9,
"item_type": "purchase_order",
"location": "Budget: test name",
"name": "Purchase Order",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "407"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 9,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=project
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": "17",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:49.206+02:00",
"deleter_id": 1282,
"item_id": 192,
"item_type": "project",
"location": "My organization",
"name": "test project",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "408"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=project&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=project&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=deal
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": "27",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:50.045+02:00",
"deleter_id": 1307,
"item_id": 338,
"item_type": "deal",
"location": "Company: Client547",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "409"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=deal&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=deal&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=budget
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": "37",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:50.942+02:00",
"deleter_id": 1333,
"item_id": 344,
"item_type": "budget",
"location": "Project: test project",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "410"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=budget&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=budget&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=invoice
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": "47",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:51.768+02:00",
"deleter_id": 1357,
"item_id": 6,
"item_type": "invoice",
"location": "Company: Client572",
"name": "Invoice - 2016/01",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "411"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=invoice&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=invoice&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=task
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": "57",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:52.833+02:00",
"deleter_id": 1384,
"item_id": 36,
"item_type": "task",
"location": "Project: test project",
"name": "Ticket title",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "412"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=task&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=task&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=service
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": "67",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:53.687+02:00",
"deleter_id": 1409,
"item_id": 213,
"item_type": "service",
"location": "test name",
"name": "test name",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "413"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=service&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=service&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=dashboard
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": "77",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:54.485+02:00",
"deleter_id": 1434,
"item_id": 28,
"item_type": "dashboard",
"location": "My organization",
"name": "Dashboard x",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "414"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=dashboard&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=dashboard&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=time_entry
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": "87",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:55.426+02:00",
"deleter_id": 1461,
"item_id": 14,
"item_type": "time_entry",
"location": "test project / test name / test name",
"name": "name surname - Oct 3 2025 - 08:00",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "415"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=time_entry&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=time_entry&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
GET /api/v2/deleted_items?filter[item_type]=purchase_order
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": "97",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:56.271+02:00",
"deleter_id": 1486,
"item_id": 18,
"item_type": "purchase_order",
"location": "Budget: test name",
"name": "Purchase Order",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "416"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
}
],
"links": {
"first": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=purchase_order&page%5Bnumber%5D=1&page%5Bsize%5D=30",
"last": "http://api-test.productive.io/api/v2/deleted_items?filter%5Bitem_type%5D=purchase_order&page%5Bnumber%5D=1&page%5Bsize%5D=30"
},
"meta": {
"current_page": 1,
"total_pages": 1,
"total_count": 1,
"page_size": 30,
"max_page_size": 200
}
}
Get deleted itemsGET/api/v2/deleted_items
GET /api/v2/deleted_items/98
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": "98",
"type": "deleted_items",
"attributes": {
"created_at": "2025-10-03T06:04:56.377+02:00",
"deleter_id": 1489,
"item_id": 228,
"item_type": "project",
"location": "My organization",
"name": "deleted project",
"private": false,
"recovered_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "417"
}
},
"deleter": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
Gets a deleted itemGET/api/v2/deleted_items/{id}
- id
number
(required) Example: 1deleted item id
PATCH /api/v2/deleted_items/99/restore
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": "229",
"type": "projects",
"attributes": {
"name": "test project",
"number": "1",
"preferences": {},
"project_number": "1",
"project_type_id": 2,
"project_color_id": null,
"last_activity_at": "2025-10-03T06:04:56.000+02:00",
"time_on_tasks": false,
"tag_colors": {},
"archived_at": null,
"created_at": "2025-10-03T06:04:56.445+02:00",
"template": false,
"duplication_status": "idle",
"custom_fields": null,
"task_custom_fields_ids": null,
"task_custom_fields_positions": null,
"page_custom_fields_ids": null,
"page_custom_fields_positions": null,
"sample_data": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "418"
}
},
"company": {
"meta": {
"included": false
}
},
"project_manager": {
"meta": {
"included": false
}
},
"last_actor": {
"meta": {
"included": false
}
},
"workflow": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/100/restore
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": "378",
"type": "deals",
"attributes": {
"name": "test name",
"date": "2025-10-03",
"end_date": null,
"number": "1",
"deal_number": "1",
"suffix": null,
"time_approval": true,
"expense_approval": true,
"client_access": false,
"deal_type_id": 2,
"budget": false,
"sales_status_updated_at": "2025-10-03T06:04:56.000+02:00",
"tag_list": [],
"origin_deal_id": null,
"profit_margin": 0,
"email_key": "c07f7f10e1f55782a3bfdb75aba21023",
"purchase_order_number": null,
"custom_fields": null,
"position": 1,
"service_type_restricted_tracking": false,
"tracking_type_id": 1,
"editor_config": {},
"discount": null,
"man_day_minutes": 480,
"rounding_interval_id": null,
"rounding_method_id": 1,
"validate_expense_when_closing": false,
"revenue_distribution_type": null,
"connection_status": "none",
"billable_time": 0,
"budget_warning": null,
"estimated_time": 0,
"budgeted_time": 0,
"worked_time": 0,
"time_to_close": null,
"probability": 50,
"previous_probability": null,
"note_interpolated": null,
"proposal_note_interpolated": null,
"footer_interpolated": null,
"proposal_footer_interpolated": null,
"todo_count": 0,
"todo_due_date": null,
"note": null,
"proposal_note": null,
"lost_comment": null,
"closed_at": null,
"delivered_on": null,
"last_activity_at": "2025-10-03T06:04:56.000+02:00",
"deleted_at": null,
"created_at": "2025-10-03T06:04:56.579+02:00",
"sales_closed_at": null,
"exchange_rate": "1.25",
"exchange_date": "2025-10-03",
"sales_closed_on": null,
"sample_data": false,
"external_id": null,
"external_sync": false,
"manual_invoicing_status_id": 1,
"footer": null,
"proposal_footer": null,
"currency": "EUR",
"currency_default": "USD",
"currency_normalized": "EUR",
"revenue": 0,
"revenue_default": 0,
"revenue_normalized": 0,
"services_revenue": 0,
"services_revenue_default": 0,
"services_revenue_normalized": 0,
"budget_total": 0,
"budget_total_default": 0,
"budget_total_normalized": 0,
"budget_used": 0,
"budget_used_default": 0,
"budget_used_normalized": 0,
"projected_revenue": 0,
"projected_revenue_default": 0,
"projected_revenue_normalized": 0,
"cost": 0,
"cost_default": 0,
"cost_normalized": 0,
"profit": 0,
"profit_default": 0,
"profit_normalized": 0,
"invoiced": 0,
"invoiced_default": 0,
"invoiced_normalized": 0,
"pending_invoicing": 0,
"pending_invoicing_default": 0,
"pending_invoicing_normalized": 0,
"manually_invoiced": 0,
"manually_invoiced_default": 0,
"manually_invoiced_normalized": 0,
"draft_invoiced": 0,
"draft_invoiced_default": 0,
"draft_invoiced_normalized": 0,
"amount_credited": 0,
"amount_credited_default": 0,
"amount_credited_normalized": 0,
"expense": 0,
"expense_default": 0,
"expense_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "419"
}
},
"creator": {
"meta": {
"included": false
}
},
"company": {
"meta": {
"included": false
}
},
"document_type": {
"meta": {
"included": false
}
},
"proposal_document_type": {
"meta": {
"included": false
}
},
"responsible": {
"meta": {
"included": false
}
},
"deal_status": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"lost_reason": {
"meta": {
"included": false
}
},
"contract": {
"meta": {
"included": false
}
},
"contact": {
"meta": {
"included": false
}
},
"subsidiary": {
"meta": {
"included": false
}
},
"template": {
"meta": {
"included": false
}
},
"tax_rate": {
"meta": {
"included": false
}
},
"pipeline": {
"meta": {
"included": false
}
},
"origin_deal": {
"meta": {
"included": false
}
},
"approval_policy_assignment": {
"meta": {
"included": false
}
},
"next_todo": {
"meta": {
"included": false
}
},
"expense_approval_workflow": {
"meta": {
"included": false
}
},
"time_approval_workflow": {
"meta": {
"included": false
}
},
"invoice_template": {
"meta": {
"included": false
}
},
"automatic_invoicing_rule": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/101/restore
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": "379",
"type": "deals",
"attributes": {
"name": "test name",
"date": "2025-10-03",
"end_date": null,
"number": "1",
"deal_number": "1",
"suffix": null,
"time_approval": true,
"expense_approval": true,
"client_access": false,
"deal_type_id": 2,
"budget": true,
"sales_status_updated_at": "2025-10-03T06:04:00.000+02:00",
"tag_list": [],
"origin_deal_id": null,
"profit_margin": 0,
"email_key": "1201de8123889cf449d5a022423eb584",
"purchase_order_number": null,
"custom_fields": null,
"position": 1,
"service_type_restricted_tracking": false,
"tracking_type_id": 1,
"editor_config": {},
"discount": null,
"man_day_minutes": 480,
"rounding_interval_id": null,
"rounding_method_id": 1,
"validate_expense_when_closing": false,
"revenue_distribution_type": null,
"connection_status": "none",
"billable_time": 0,
"budget_warning": null,
"estimated_time": 0,
"budgeted_time": 0,
"worked_time": 0,
"time_to_close": null,
"probability": 50,
"previous_probability": null,
"note_interpolated": null,
"proposal_note_interpolated": null,
"footer_interpolated": null,
"proposal_footer_interpolated": null,
"todo_count": 0,
"todo_due_date": null,
"note": null,
"proposal_note": null,
"lost_comment": null,
"closed_at": null,
"delivered_on": null,
"last_activity_at": "2025-10-03T06:04:56.000+02:00",
"deleted_at": null,
"created_at": "2025-10-03T06:04:56.838+02:00",
"sales_closed_at": null,
"exchange_rate": "1.25",
"exchange_date": "2025-10-03",
"sales_closed_on": null,
"sample_data": false,
"external_id": null,
"external_sync": false,
"manual_invoicing_status_id": 1,
"footer": null,
"proposal_footer": null,
"currency": "EUR",
"currency_default": "USD",
"currency_normalized": "EUR",
"revenue": 0,
"revenue_default": 0,
"revenue_normalized": 0,
"services_revenue": 0,
"services_revenue_default": 0,
"services_revenue_normalized": 0,
"budget_total": 0,
"budget_total_default": 0,
"budget_total_normalized": 0,
"budget_used": 0,
"budget_used_default": 0,
"budget_used_normalized": 0,
"projected_revenue": 0,
"projected_revenue_default": 0,
"projected_revenue_normalized": 0,
"cost": 0,
"cost_default": 0,
"cost_normalized": 0,
"profit": 0,
"profit_default": 0,
"profit_normalized": 0,
"invoiced": 0,
"invoiced_default": 0,
"invoiced_normalized": 0,
"pending_invoicing": 0,
"pending_invoicing_default": 0,
"pending_invoicing_normalized": 0,
"manually_invoiced": 0,
"manually_invoiced_default": 0,
"manually_invoiced_normalized": 0,
"draft_invoiced": 0,
"draft_invoiced_default": 0,
"draft_invoiced_normalized": 0,
"amount_credited": 0,
"amount_credited_default": 0,
"amount_credited_normalized": 0,
"expense": 0,
"expense_default": 0,
"expense_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "420"
}
},
"creator": {
"meta": {
"included": false
}
},
"company": {
"meta": {
"included": false
}
},
"document_type": {
"meta": {
"included": false
}
},
"proposal_document_type": {
"meta": {
"included": false
}
},
"responsible": {
"meta": {
"included": false
}
},
"deal_status": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"lost_reason": {
"meta": {
"included": false
}
},
"contract": {
"meta": {
"included": false
}
},
"contact": {
"meta": {
"included": false
}
},
"subsidiary": {
"meta": {
"included": false
}
},
"template": {
"meta": {
"included": false
}
},
"tax_rate": {
"meta": {
"included": false
}
},
"pipeline": {
"meta": {
"included": false
}
},
"origin_deal": {
"meta": {
"included": false
}
},
"approval_policy_assignment": {
"meta": {
"included": false
}
},
"next_todo": {
"meta": {
"included": false
}
},
"expense_approval_workflow": {
"meta": {
"included": false
}
},
"time_approval_workflow": {
"meta": {
"included": false
}
},
"invoice_template": {
"meta": {
"included": false
}
},
"automatic_invoicing_rule": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/102/restore
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": "12",
"type": "invoices",
"attributes": {
"number": null,
"subject": null,
"invoiced_on": "2025-10-03",
"sent_on": null,
"pay_on": "2025-10-13",
"delivery_on": null,
"paid_on": null,
"finalized_on": null,
"discount": null,
"tax1_name": null,
"tax1_value": null,
"tax2_name": null,
"tax2_value": null,
"deleted_at": null,
"tag_list": [],
"note": null,
"footer": null,
"exported": false,
"exported_at": null,
"export_integration_type_id": null,
"export_id": null,
"export_invoice_url": null,
"company_reference_id": null,
"note_interpolated": null,
"footer_interpolated": null,
"email_key": "267c1e1b3759b5d16a5094aaed5da1b5",
"purchase_order_number": null,
"created_at": "2025-10-03T06:04:57.043+02:00",
"exchange_rate": "1.25",
"exchange_date": "2025-10-03",
"custom_fields": null,
"updated_at": "2025-10-03T06:04:57.085+02:00",
"sample_data": false,
"pay_on_relative": false,
"invoice_type_id": 1,
"credited": false,
"line_item_tax": false,
"last_activity_at": "2025-10-03T06:04:57.043+02:00",
"creation_options": {},
"payment_terms": 10,
"bank_account_details": null,
"currency": "EUR",
"currency_default": "USD",
"currency_normalized": "EUR",
"amount": 0,
"amount_default": 0,
"amount_normalized": 0,
"amount_tax": 0,
"amount_tax_default": 0,
"amount_tax_normalized": 0,
"amount_with_tax": 0,
"amount_with_tax_default": 0,
"amount_with_tax_normalized": 0,
"amount_paid": 0,
"amount_paid_default": 0,
"amount_paid_normalized": 0,
"amount_written_off": 0,
"amount_written_off_default": 0,
"amount_written_off_normalized": 0,
"amount_unpaid": 0,
"amount_unpaid_default": 0,
"amount_unpaid_normalized": 0,
"amount_credited": 0,
"amount_credited_default": 0,
"amount_credited_normalized": 0,
"amount_credited_with_tax": 0,
"amount_credited_with_tax_default": 0,
"amount_credited_with_tax_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "421"
}
},
"bill_to": {
"meta": {
"included": false
}
},
"bill_from": {
"meta": {
"included": false
}
},
"company": {
"meta": {
"included": false
}
},
"document_type": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
},
"subsidiary": {
"meta": {
"included": false
}
},
"parent_invoice": {
"meta": {
"included": false
}
},
"issuer": {
"meta": {
"included": false
}
},
"bank_account": {
"meta": {
"included": false
}
},
"invoice_attributions": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
},
"attachment": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/103/restore
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": "41",
"type": "tasks",
"attributes": {
"title": "Ticket title",
"description": null,
"number": "1",
"task_number": "1",
"private": false,
"due_date": null,
"start_date": null,
"closed_at": null,
"created_at": "2025-10-03T06:04:57.277+02:00",
"updated_at": "2025-10-03T06:04:57.311+02:00",
"repeat_schedule_id": null,
"repeat_on_interval": null,
"repeat_on_monthday": null,
"repeat_on_weekday": [],
"repeat_on_date": null,
"repeat_origin_id": null,
"email_key": "d4fcf0b30222b942c07f8e71d41856e6",
"custom_fields": null,
"todo_count": null,
"open_todo_count": null,
"subtask_count": null,
"open_subtask_count": null,
"creation_method_id": 1,
"todo_assignee_ids": [],
"task_dependency_count": 0,
"type_id": 1,
"blocking_dependency_count": 0,
"waiting_on_dependency_count": 0,
"linked_dependency_count": 0,
"placement": null,
"subtask_placement": null,
"closed": false,
"due_time": null,
"tag_list": [],
"last_activity_at": "2025-10-03T06:04:57.000+02:00",
"initial_estimate": null,
"remaining_time": null,
"billable_time": null,
"worked_time": null,
"deleted_at": null
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "422"
}
},
"project": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
},
"assignee": {
"meta": {
"included": false
}
},
"last_actor": {
"meta": {
"included": false
}
},
"task_list": {
"meta": {
"included": false
}
},
"parent_task": {
"meta": {
"included": false
}
},
"workflow_status": {
"meta": {
"included": false
}
},
"repeated_task": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/104/restore
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": "221",
"type": "services",
"attributes": {
"name": "test name",
"position": 1,
"deleted_at": null,
"billable": true,
"description": null,
"time_tracking_enabled": true,
"expense_tracking_enabled": true,
"booking_tracking_enabled": true,
"origin_service_id": null,
"initial_service_id": 221,
"budget_cap_enabled": false,
"editor_config": {},
"custom_fields": null,
"pricing_type_id": 1,
"billing_type_id": 1,
"unapproved_time": 0,
"worked_time": 0,
"billable_time": 0,
"estimated_time": null,
"budgeted_time": null,
"rolled_over_time": 0,
"profit_margin": "100.0",
"booked_time": 0,
"unit_id": 2,
"future_booked_time": 0,
"markup": null,
"discount": null,
"quantity": "1.0",
"limitation_type": "no_limitation",
"currency": "EUR",
"currency_default": "USD",
"currency_normalized": "EUR",
"profit": 100000,
"profit_default": 125000,
"profit_normalized": 100000,
"work_cost": 0,
"work_cost_default": 0,
"work_cost_normalized": 0,
"future_cost": 0,
"future_cost_default": 0,
"future_cost_normalized": 0,
"cost": 0,
"cost_default": 0,
"cost_normalized": 0,
"price": 100000,
"price_default": 125000,
"price_normalized": 100000,
"revenue": 100000,
"revenue_default": 125000,
"revenue_normalized": 100000,
"projected_revenue": 50000,
"projected_revenue_default": 62500,
"projected_revenue_normalized": 50000,
"expense_amount": 0,
"expense_amount_default": 0,
"expense_amount_normalized": 0,
"expense_billable_amount": 0,
"expense_billable_amount_default": 0,
"expense_billable_amount_normalized": 0,
"budget_total": 100000,
"budget_total_default": 125000,
"budget_total_normalized": 100000,
"budget_used": 0,
"budget_used_default": 0,
"budget_used_normalized": 0,
"future_revenue": 0,
"future_revenue_default": 0,
"future_revenue_normalized": 0,
"future_budget_used": 0,
"future_budget_used_default": 0,
"future_budget_used_normalized": 0,
"discount_amount": 0,
"discount_amount_default": 0,
"discount_amount_normalized": 0,
"markup_amount": 0,
"markup_amount_default": 0,
"markup_amount_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "423"
}
},
"service_type": {
"meta": {
"included": false
}
},
"deal": {
"meta": {
"included": false
}
},
"person": {
"meta": {
"included": false
}
},
"section": {
"meta": {
"included": false
}
},
"custom_field_people": {
"meta": {
"included": false
}
},
"custom_field_attachments": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/106/restore
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": "pages",
"attributes": {
"cover_image_meta": null,
"cover_image_url": null,
"created_at": "2025-10-03T06:04:57.772+02:00",
"custom_fields": null,
"edited_at": null,
"icon_id": null,
"position": null,
"preferences": {},
"title": "Page title 1",
"updated_at": "2025-10-03T06:04:57.835+02:00",
"version_number": null,
"last_activity_at": "2025-10-03T06:04:57.772+02:00",
"public_access": false,
"public_uuid": "1384bfc5-56e6-5dbe-9eff-1e41a468f8b8",
"body": "{\"text\":\"Page body 1\"}",
"parent_page_id": null,
"root_page_id": null,
"public": false
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "425"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
},
"parent_page": {
"meta": {
"included": false
}
},
"root_page": {
"meta": {
"included": false
}
},
"attachments": {
"meta": {
"included": false
}
},
"template_object": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/107/restore
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": "31",
"type": "dashboards",
"attributes": {
"name": "Dashboard aa",
"created_at": "2025-10-03T06:04:57.896+02:00",
"updated_at": "2025-10-03T06:04:57.932+02:00"
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "426"
}
},
"creator": {
"meta": {
"included": false
}
},
"project": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/108/restore
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": "16",
"type": "time_entries",
"attributes": {
"date": "2025-10-03",
"created_at": "2025-10-03T06:04:58.332+02:00",
"time": 480,
"billable_time": 480,
"note": "test note",
"track_method_id": 1,
"started_at": null,
"timer_started_at": null,
"timer_stopped_at": null,
"approved": false,
"approved_at": null,
"updated_at": "2025-10-03T06:04:58.550+02:00",
"calendar_event_id": null,
"invoice_attribution_id": null,
"invoiced": false,
"overhead": false,
"rejected": false,
"rejected_reason": null,
"rejected_at": null,
"last_activity_at": "2025-10-03T06:04:58.332+02:00",
"submitted": false,
"currency": "USD",
"currency_default": "USD",
"currency_normalized": "USD",
"cost": 0,
"cost_default": 0,
"cost_normalized": 0,
"work_cost": 0,
"work_cost_default": 0,
"work_cost_normalized": 0,
"overhead_cost": 0,
"overhead_cost_default": 0,
"overhead_cost_normalized": 0,
"internal_overhead_cost": 0,
"internal_overhead_cost_default": 0,
"internal_overhead_cost_normalized": 0,
"facility_overhead_cost": 0,
"facility_overhead_cost_default": 0,
"facility_overhead_cost_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "427"
}
},
"person": {
"meta": {
"included": false
}
},
"service": {
"meta": {
"included": false
}
},
"task": {
"meta": {
"included": false
}
},
"approver": {
"meta": {
"included": false
}
},
"updater": {
"meta": {
"included": false
}
},
"rejecter": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
},
"last_actor": {
"meta": {
"included": false
}
},
"person_subsidiary": {
"meta": {
"included": false
}
},
"deal_subsidiary": {
"meta": {
"included": false
}
},
"timesheet": {
"meta": {
"included": false
}
},
"invoice_attribution": {
"meta": {
"included": false
}
},
"approval_statuses": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
PATCH /api/v2/deleted_items/109/restore
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": "19",
"type": "purchase_orders",
"attributes": {
"subject": null,
"status_id": null,
"issued_on": "2025-10-03",
"delivery_on": null,
"sent_on": null,
"received_on": null,
"created_at": "2025-10-03T06:04:58.678+02:00",
"number": "1",
"note": null,
"footer": null,
"note_interpolated": null,
"footer_interpolated": null,
"email_key": "232650da9bd5059d1f6988ba4aeef215",
"payment_status_id": 3,
"exchange_rate": "1.25",
"exchange_date": "2025-10-03",
"currency": "EUR",
"currency_default": "USD",
"currency_normalized": "EUR",
"total_cost": 0,
"total_cost_default": 0,
"total_cost_normalized": 0,
"total_cost_with_tax": 0,
"total_cost_with_tax_default": 0,
"total_cost_with_tax_normalized": 0,
"total_received": 0,
"total_received_default": 0,
"total_received_normalized": 0
},
"relationships": {
"organization": {
"data": {
"type": "organizations",
"id": "428"
}
},
"vendor": {
"meta": {
"included": false
}
},
"deal": {
"meta": {
"included": false
}
},
"creator": {
"meta": {
"included": false
}
},
"document_type": {
"meta": {
"included": false
}
},
"attachment": {
"meta": {
"included": false
}
},
"bill_to": {
"meta": {
"included": false
}
},
"bill_from": {
"meta": {
"included": false
}
}
}
},
"meta": {}
}
Restores deleted objectPATCH/api/v2/deleted_items/{id}/restore
- id
number
(required) Example: 1deleted item id
Generated by aglio on 03 Oct 2025