- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to schedule a Delete of a record:host via the (W)API ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 01:03 AM
Hi,
Is it possible to delete a record:host on a scheduled date via the (W)API?
I know it is possible to schedule the deletion of a record host via the UI, but I am unable to do this via the API.
Currently I am able to:
- Delete a record:host directly with /DELETE /wapi/v2.0/record:host/
- See a list of scheduled tasks with /GET /wapi/v2.0/scheduledtask/
It seems that there is not attribute which I can add to the delete call to do the deletion on a certain date and the API doesn't allow me to create a new scheduled task.
Is there any other way this is achieveable?
Solved! Go to Solution.
Re: How to schedule a Delete of a record:host via the (W)API ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2019 01:43 AM
Hi,
We can do it :
Delete a record with Schedule time :
DELETE /record:host/ZG5zLmhvc3QkLl9kZWZhdWx0LmRlLnVuaS1tYWdkZWJ1cmcuaW1lZC5hYmluZXAtNzQ2MjU:abinep-74625.alma.uni.com/default?_schedinfo.scheduled_time=1660175175
You can give the scheduled_time in the parameter
thanks
Re: How to schedule a Delete of a record:host via the (W)API ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2019 04:19 AM
Works like a charm, thanks!