Skip to Content
DevelopersAPI referenceTime

Undo import

POST
/v1/time/imports/{id}/undo

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (blk_…) from Settings → API keys.

Path Parameters

id*string

Response Body

application/json
  1. response
removed*integer
Range-9007199254740991 <= value <= 9007199254740991
keptInvoiced*integer
Range-9007199254740991 <= value <= 9007199254740991
keptLocked*integer
Range-9007199254740991 <= value <= 9007199254740991
batch*
Example Request
curl -X POST 'https://your-billleaf-api/v1/time/imports/string/undo'
Example Response200
{  "removed": -9007199254740991,  "keptInvoiced": -9007199254740991,  "keptLocked": -9007199254740991,  "batch": {    "id": "string",    "source": "clockify",    "filename": "string",    "importedCount": -9007199254740991,    "duplicateCount": -9007199254740991,    "invalidCount": -9007199254740991,    "createdByName": "string",    "createdAt": "2019-08-24T14:15:22Z",    "remainingCount": -9007199254740991,    "removedCount": -9007199254740991,    "undoneAt": "2019-08-24T14:15:22Z"  }}