API Documentation

API Endpoint

Imports

Imports

Supported filter params

  • import_model_id (array)

  • sample

GET /api/v2/imports
Requestsreturns imports

GET  /api/v2/imports

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": [
    {
      "id": "1",
      "type": "imports",
      "attributes": {
        "import_model_id": null,
        "creator_id": 586,
        "sample": null,
        "started_at": null,
        "processed_at": null,
        "reverted_at": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 295
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "586"
          }
        }
      }
    },
    {
      "id": "2",
      "type": "imports",
      "attributes": {
        "import_model_id": null,
        "creator_id": 586,
        "sample": null,
        "started_at": null,
        "processed_at": null,
        "reverted_at": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 295
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "586"
          }
        }
      }
    },
    {
      "id": "3",
      "type": "imports",
      "attributes": {
        "import_model_id": null,
        "creator_id": 586,
        "sample": null,
        "started_at": null,
        "processed_at": null,
        "reverted_at": null
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 295
          }
        },
        "creator": {
          "data": {
            "type": "people",
            "id": "586"
          }
        }
      }
    }
  ],
  "included": [
    {
      "id": "586",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user588@email.com",
        "title": null,
        "joined_at": "2020-08-11T01:04:34.000+02:00",
        "last_seen_at": "2020-08-11T01:04:34.303+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-08-11T01:04:34.221+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 295
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "796"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "796",
      "type": "companies",
      "attributes": {
        "name": "Organization295",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:34.219+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 295
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "links": {
    "first": "http://www.example.com/api/v2/imports?page%5Bnumber%5D=1&page%5Bsize%5D=30",
    "last": "http://www.example.com/api/v2/imports?page%5Bnumber%5D=1&page%5Bsize%5D=30"
  },
  "meta": {
    "current_page": 1,
    "total_pages": 1,
    "total_count": 3,
    "page_size": 30,
    "max_page_size": 200,
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Get all imports
GET/api/v2/imports


GET /api/v2/imports/1
Requestsreturns an import

GET  /api/v2/imports/4

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "4",
    "type": "imports",
    "attributes": {
      "import_model_id": null,
      "creator_id": 587,
      "sample": null,
      "started_at": null,
      "processed_at": null,
      "reverted_at": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 296
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "587"
        }
      }
    }
  },
  "included": [
    {
      "id": "587",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user589@email.com",
        "title": null,
        "joined_at": "2020-08-11T01:04:34.000+02:00",
        "last_seen_at": "2020-08-11T01:04:34.402+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-08-11T01:04:34.367+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 296
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "797"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "797",
      "type": "companies",
      "attributes": {
        "name": "Organization296",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:34.366+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 296
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Get an import
GET/api/v2/imports/{id}

URI Parameters
HideShow
id
number (required) Example: 1

import id


POST /api/v2/imports
Requestscreates the importreturns error

POST  /api/v2/imports

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": "imports",
    "attributes": {
      "import_data": "{\n                \"company\":\n                  [\n                    {\"name\":\"Import\"}\n                  ],\n                \"person\":\n                  [\n                    {\"Company\":\"Import\",\"First Name\":\"John\",\"Last Name\":\"Doe\",\"Email\":\"john@mail.com\",\"Title\":\"Contact\"}\n                  ]\n              }"
    }
  }
}
Responses201
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "10",
    "type": "imports",
    "attributes": {
      "import_model_id": null,
      "creator_id": 588,
      "sample": false,
      "started_at": null,
      "processed_at": null,
      "reverted_at": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 297
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "588"
        }
      }
    }
  },
  "included": [
    {
      "id": "588",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user590@email.com",
        "title": null,
        "joined_at": "2020-08-11T01:04:34.000+02:00",
        "last_seen_at": "2020-08-11T01:04:34.518+02:00",
        "deactivated_at": null,
        "archived_at": null,
        "role_id": 1,
        "invited_at": null,
        "is_user": true,
        "tag_list": [],
        "avatar_url": null,
        "virtual": false,
        "custom_fields": null,
        "autotracking": false,
        "created_at": "2020-08-11T01:04:34.475+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 297
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "798"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "798",
      "type": "companies",
      "attributes": {
        "name": "Organization297",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:34.473+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 297
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/imports

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": "imports",
    "attributes": {}
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't be blank",
      "source": {
        "pointer": "data/attributes/import_data"
      }
    }
  ]
}

Create an import
POST/api/v2/imports

URI Parameters
HideShow
import_data
string (required) Example: Import+data

import data


PATCH /api/v2/imports/1
Requestsupdates the importreturns error

PATCH  /api/v2/imports/14

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": "imports",
    "attributes": {
      "import_data": "{\n                \"company\":\n                  [\n                    {\"name\":\"Import\"}\n                  ],\n                \"person\":\n                  [\n                    {\"Company\":\"Import\",\"First Name\":\"John\",\"Last Name\":\"Doe\",\"Email\":\"john@mail.com\",\"Title\":\"Contact\"}\n                  ]\n              }"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "14",
    "type": "imports",
    "attributes": {
      "import_model_id": null,
      "creator_id": 590,
      "sample": false,
      "started_at": null,
      "processed_at": null,
      "reverted_at": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 299
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "590"
        }
      }
    }
  },
  "included": [
    {
      "id": "590",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user592@email.com",
        "title": null,
        "joined_at": "2018-01-01T00:00:00.000+01:00",
        "last_seen_at": "2018-01-01T00:00:00.000+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": "2020-08-11T01:04:34.743+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 299
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "800"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "800",
      "type": "companies",
      "attributes": {
        "name": "Organization299",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:34.741+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 299
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

PATCH  /api/v2/imports/17

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": "imports",
    "attributes": {}
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't be blank",
      "source": {
        "pointer": "data/attributes/import_data"
      }
    }
  ]
}

Update an import
PATCH/api/v2/imports/{id}

URI Parameters
HideShow
id
number (required) Example: 1

import id


POST /api/v2/imports/1/import
Requestsimports the importreturns errorreturns error

POST  /api/v2/imports/20/import

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": "imports",
    "attributes": {
      "import_data": "{\n                \"company\":\n                  [\n                    {\"name\":\"Import\"}\n                  ],\n                \"person\":\n                  [\n                    {\"Company\":\"Import\",\"First Name\":\"John\",\"Last Name\":\"Doe\",\"Email\":\"john@mail.com\",\"Title\":\"Contact\"}\n                  ]\n              }"
    }
  }
}
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "20",
    "type": "imports",
    "attributes": {
      "import_model_id": null,
      "creator_id": 592,
      "sample": null,
      "started_at": "2018-01-01T00:00:00.000+01:00",
      "processed_at": "2018-01-01T00:00:00.000+01:00",
      "reverted_at": null
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 301
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "592"
        }
      }
    }
  },
  "included": [
    {
      "id": "592",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user594@email.com",
        "title": null,
        "joined_at": "2018-01-01T00:00:00.000+01:00",
        "last_seen_at": "2018-01-01T00:00:00.000+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": "2020-08-11T01:04:34.983+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 301
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "802"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "802",
      "type": "companies",
      "attributes": {
        "name": "Organization301",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:34.981+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 301
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

POST  /api/v2/imports

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": "imports",
    "attributes": {}
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": "can't be blank",
      "source": {
        "pointer": "data/attributes/import_data"
      }
    }
  ]
}

POST  /api/v2/imports

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": "imports",
    "attributes": {
      "import_data": "{\n                \"company\":\n                  [\n                    {\"name\":\"Import\"}\n                  ],\n                \"person\":\n                  [\n                    {\"Company\":\"Import\",\"First Name\":\"\",\"Last Name\":\"\",\"Email\":\"john@mail.com\"}\n                  ]\n              }"
    }
  }
}
Responses422
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "errors": [
    {
      "status": "422",
      "code": "invalid_attribute",
      "title": "Invalid Attribute",
      "detail": {
        "company": [],
        "person": [
          {
            "row": 1,
            "column": "first_name",
            "messages": [
              "First name can't be blank"
            ]
          }
        ]
      },
      "source": {
        "pointer": "data/attributes/import_data"
      }
    }
  ]
}

Imports an import
POST/api/v2/imports/{id}/import

URI Parameters
HideShow
id
number (required) Example: 1

import id


PATCH /api/v2/imports/1/revert
Requestsreverts import

PATCH  /api/v2/imports/29/revert

Headers
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Content-Type: application/vnd.api+json
Responses200
Headers
Content-Type: application/vnd.api+json; charset=utf-8
Body
{
  "data": {
    "id": "29",
    "type": "imports",
    "attributes": {
      "import_model_id": null,
      "creator_id": 596,
      "sample": null,
      "started_at": null,
      "processed_at": "2017-12-31T23:00:00.000+01:00",
      "reverted_at": "2018-01-01T00:00:00.000+01:00"
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organizations",
          "id": 304
        }
      },
      "creator": {
        "data": {
          "type": "people",
          "id": "596"
        }
      }
    }
  },
  "included": [
    {
      "id": "596",
      "type": "people",
      "attributes": {
        "first_name": "test first name",
        "last_name": "test last name",
        "email": "user597@email.com",
        "title": null,
        "joined_at": "2018-01-01T00:00:00.000+01:00",
        "last_seen_at": "2018-01-01T00:00:00.000+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": "2020-08-11T01:04:35.321+02:00",
        "placeholder": false,
        "color_id": null,
        "private_custom_reports_used": 0
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 304
          }
        },
        "company": {
          "data": {
            "type": "companies",
            "id": "806"
          }
        },
        "subsidiary": {
          "data": null
        }
      }
    },
    {
      "id": "806",
      "type": "companies",
      "attributes": {
        "name": "Organization304",
        "default_currency": "USD",
        "created_at": "2020-08-11T01:04:35.320+02:00",
        "archived_at": null,
        "avatar_url": null,
        "invoice_email_recipients": {},
        "custom_fields": null,
        "description": null,
        "due_days": null,
        "tag_list": []
      },
      "relationships": {
        "organization": {
          "data": {
            "type": "organizations",
            "id": 304
          }
        },
        "bill_to": {
          "data": null
        }
      }
    }
  ],
  "meta": {
    "organization_features": {
      "custom_fields": {
        "type": "metered",
        "limit": 15,
        "used": 0
      },
      "custom_fields_per_project": {
        "type": "metered",
        "limit": 10,
        "used": 0
      },
      "public_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "private_custom_reports": {
        "type": "metered",
        "limit": 30,
        "used": 0
      },
      "scheduling_placeholders": {
        "type": "metered",
        "limit": 5,
        "used": 0
      },
      "multigrouping": {
        "type": "switch",
        "available": true
      },
      "client_access_to_budgets": {
        "type": "switch",
        "available": true
      },
      "subsidiaries": {
        "type": "switch",
        "available": true
      },
      "time_approvals": {
        "type": "switch",
        "available": true
      },
      "expenses_approvals": {
        "type": "switch",
        "available": true
      },
      "timeoff_approvals": {
        "type": "switch",
        "available": true
      },
      "autotracking": {
        "type": "switch",
        "available": true
      },
      "forecasting": {
        "type": "switch",
        "available": true
      },
      "webhooks": {
        "type": "switch",
        "available": true
      },
      "table_pivoting": {
        "type": "switch",
        "available": true
      },
      "formula_fields": {
        "type": "switch",
        "available": true
      },
      "single_sign_on": {
        "type": "switch",
        "available": true
      }
    }
  }
}

Revert an import
PATCH/api/v2/imports/{id}/revert

URI Parameters
HideShow
id
number (required) Example: 1

import id


Generated by aglio on 10 Aug 2020