Reply

How to schedule a Delete of a record:host via the (W)API ?

New Member
Posts: 2
5139     0

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?

 

Re: How to schedule a Delete of a record:host via the (W)API ?

Authority
Posts: 14
5139     0

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 ?

New Member
Posts: 2
5139     0

Works like a charm, thanks!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You