ver. 2035 (2605b6c)
services/apiref
services/apisrv
services/attrs
services/caches
services/caches/formatters
services/caches/map
services/caches/search
services/caches/shortcuts
services/draftlogs
services/lists
services/logs
services/logs/images
services/oauth
services/replicate
services/users

Delete draft logs OCDE
:: services/draftlogs/delete method

Minimum Authentication: Level 3 (see Authentication Levels)
https://www.opencaching.nl/okapi/services/draftlogs/delete

Deletes draft logs (field notes) of the user, as the website's own field notes page does. Only the user's own drafts can be deleted. Draft IDs are returned by services/draftlogs/query and by services/draftlogs/upload_fieldnotes.

This method is only available on installations that support draft logs. Check the has_draft_logs field in services/apisrv/installation before calling it.

draft_ids required

Pipe-separated list of draft IDs, at most 500.

format optional Standard common formatting argument.
callback optional Standard common formatting argument.
Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus required oauth_token for Token authorization.

Returned value:

A dictionary of the following structure:

  • success - true,
  • deleted_draft_ids - list of the IDs that were deleted,
  • not_found_draft_ids - list of the IDs that were not deleted, because no such draft exists or it belongs to another user.