Hi Tom,
Sorry to say the API doesn’t currently support generic bulk operations,
only the few special cases listed in the documentation. You should be able
to issue a GET, find the affected slips and (as you suggest) merge with
your original source JSON to craft some updates, but each of these will
have to be issued individually as a PUT against the appropriate slip’s URL.
Alternatively, you could delete each affected slip and re-issue the (fixed)
bulk create request, but each DELETE would also have to be issued
individually.
Hope this helps a bit!
-JOn Tue, Dec 30, 2014 at 10:02 AM, waako tom@opencode.limited wrote:
Now I just have to clean up my mess!
Is there a way of bulk deleting timeslips so I can properly import them
all from scratch?
Alternatively I guess I could do a get and then merge that output with the
initial json which has hours value, and hope that I can put the updated
timeslips, but from documentation not sure if it is possible to bulk
put/update timeslips.
Many thanks!
Open Code Limited is a company registered at:
Well Cottage, 2 Blankstones Farm, 39 Acre End Street, Eynsham OX29 4PF.
Company nº 9301422 in England and Wales.
–
You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api.
For more options, visit https://groups.google.com/d/optout.
Jonathan Barrett, Senior Engineer
FreeAgent: Accounting software, simplified
+44 (0)131 447 0011
Follow us on Twitter: @freeagent https://twitter.com/freeagent
FreeAgent Central Ltd, 40 Torphichen Street, Edinburgh EH3 8JB
Registered in Scotland SC316774