Open topic with navigation

# Use a State Token with Index Actions

You can use the `StateID` and `StateMatchID` parameters to pass a state token in the `DREDELETEDOC`, `DREEXPORTIDX`, `DREEXPORTXML`, `DREEXPORTREMOTE`, and `DRECHANGEMETA` actions.

Index action | State parameters supported
--- | ---
`DREDELETEDOC` | `StateID`
`DREEXPORTIDX` | `StateMatchID`
`DREEXPORTXML` | `StateMatchID`
`DREEXPORTREMOTE` | `StateMatchID`
`DRECHANGEMETA` | `StateID`

Examples:

- Change document database. Use the `StateID` parameter to assign all 100 documents identified by state token `CTBJ1V4QO4I5-100` (as well as the indexed documents with document IDs 1 and 2) to the `archive` database:

      DRECHANGEMETA?Type=database&NewValue=archive&Docs=1+2&StateID=CTBJ1V4QO4I5-100

- Delete documents. Use the `StateID` parameter to delete the first five documents identified by state token `CTBJ1V4QO4I5-100`:

      DREDELETEDOC?StateID=CTBJ1V4QO4I5-100[0-4]

- Export documents. Use the `StateMatchID` parameter to export the second, fourth, and sixth documents identified by state token `CTBJ1V4QO4I5-100`:

      DREEXPORTXML?StateMatchID=CTBJ1V4QO4I5-100[1+3+5]

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE 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 AutonomyTPFeedback@hpe.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm