Notice for deleted records
We are currently using the api and have some discrepancies on time entries. The problem is when a time entry is deleted, there isn't a notification sent by the api that the time entry has been deleted. As you can imagine, our time entry records are greater in our system vs what Cashboard reports. Is there a quick fix for this?
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Seth B on 29 Jan, 2014 09:20 PM
Aaron,
See the very bottom of this page:
https://api.cashboardapp.com/
DELETE
Successful put requests will return HTTP response code 200 (SUCCESS). No data will be returned.
HTTP response code 404 (NOT FOUND) if the resource for the URL provided is not found
HTTP response code 400 (BAD REQUEST) if the resource can't be deleted
2 Posted by Aaron Pettitt on 29 Jan, 2014 09:24 PM
The issue is this:
We create a time entry in CB
Our system queries for any new or updated time entries.
We import the new time entry into our system.
The time entry is deleted in CB
Our system queries for any new or updated time entries.
Nothing comes across saying that time entry was just removed so it stays in our system.
Does this make sense?
Support Staff 3 Posted by Seth B on 29 Jan, 2014 09:30 PM
Sounds like you're asking for a callback that reaches out to your system and notifies you that a resource has been deleted. Sorry, but I don't know of any API that does this.
I get what you're saying, but I don't think there's anything we'll be doing in the near term to solve this for you. This is an issue you'll need to figure out.
In the event we ever offer an "undelete" feature, we might add a "deleted" flag to items, but that's nowhere near implementation at this point.
4 Posted by Aaron Pettitt on 29 Jan, 2014 09:32 PM
Not a callback, but when we query the time records, it gives us a list of ones that have changed, inserted, and deleted in that time frame. The deleted ones can just contain the Id and a boolean deleted field set to true.
Support Staff 5 Posted by Seth B on 29 Jan, 2014 09:34 PM
Like I said…
Once items are deleted now they're gone from the database completely. Not changing anytime soon - sorry.