Notice for deleted records

Aaron Pettitt's Avatar

Aaron Pettitt

29 Jan, 2014 06:37 PM

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?

  1. Support Staff 1 Posted by Seth B on 29 Jan, 2014 09:20 PM

    Seth B's Avatar

    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. 2 Posted by Aaron Pettitt on 29 Jan, 2014 09:24 PM

    Aaron Pettitt's Avatar

    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?

  3. Support Staff 3 Posted by Seth B on 29 Jan, 2014 09:30 PM

    Seth B's Avatar

    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. 4 Posted by Aaron Pettitt on 29 Jan, 2014 09:32 PM

    Aaron Pettitt's Avatar

    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.

  5. Support Staff 5 Posted by Seth B on 29 Jan, 2014 09:34 PM

    Seth B's Avatar

    Like I said…

    Once items are deleted now they're gone from the database completely. Not changing anytime soon - sorry.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

03 Nov, 2024 02:49 AM
29 Oct, 2024 04:41 PM
10 Sep, 2024 12:44 AM
10 Sep, 2024 12:44 AM
10 Sep, 2024 12:40 AM