Results > Manipulate the Results Set > Store and Retrieve the Result State > Use a State Token with Index Commands

Use a State Token with Index Commands
You can use the parameters StateID and StateMatchID to pass a state token in these actions: DREDELETEDOC, DREEXPORTIDX, DREEXPORTXML, DREEXPORTREMOTE, and DRECHANGEMETA.
 
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 database archive:
http://localhost:20001/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:
http://localhost:20001/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:
http://localhost:20001/DREEXPORTXML?statematchid=CTBJ1V4QO4I5-100[1+3+5]