Open topic with navigation

# 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:

    http://localhost:12000?Action=GetResources&SystemName=Answerbank&Type=question_equivalence_class

The following example restores a question equivalence class:

    Action=ManageResource&SystemName=AnswerBank
    data={
       "operation":"undelete",
       "type":"question_equivalence_class",
       "ids": [
          "2012912839742797651"
       ]
    }

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.

NOTE:

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.

- To change the expiration time that Answer Server assigns to deleted items, modify the `UndeleteLifetime` configuration parameter in the section of the Answer Server configuration file where you configure the Answer Bank system. For more information, refer to the Answer Server Reference.
- To change the expiration schedule, modify the `ExpireTime` configuration parameter in the `[Schedule]` section of the Answer Bank Agentstore configuration file. For more information refer to the IDOL Content Component Reference.

© 2015-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm