Undelete a Question or Question Equivalence Class

After you delete a question or question equivalence class, there is a short period in which you can undelete it before it is permanently deleted from the system. For more information about how long an item is available after you delete it, see Modify the Expiration Time.

To undelete a question or question equivalence class, you use a ManageResources action in a POST request method, with the information about the item that you want to undelete provided in the Data parameter as a JSON object.

You must include the ID of the item that you want to undelete, and set the type of the operation to question or question_equivalence_class, as appropriate.

You can retrieve the ID of the question or question equivalence class by sending a GetResources action. For example:


The following example restores a question equivalence class:

   "ids": [ 

You can retrieve the full schema for the JSON object to use by using the GetResources action. See Find the JSON Schema for Your Update.


The ManageResources action fails if you attempt to use request JSON that contains properties that are not contained in the appropriate schema.

Modify the Expiration Time

When you delete a question or question equivalence class, Answer Server uses ExpireDateType fields in the Answer Bank Agentstore component to manage the expiration of deleted items.

All items in the Answer Bank Agentstore have an ExpireDateType field. Normally, these fields are set such that the questions and question equivalence classes never expire. When you delete an item, Answer Server sets this expiration time to a short time after you delete it.

By default, the expiration time is ten minutes. The default Answer Bank Agentstore configuration runs an expiration schedule every hour. You can therefore expect your question and question equivalences classes to be available to undelete for between ten minutes and an hour and ten minutes.