Get link or package IDs, by using the linkgrabberv2/queryLinks or downloadsV2/queryLinks methods
Use extraction/getArchiveInfo?[LINKID1,LINKID2,...]&[PACKAGEID1,PACKAGEID2,...] to get a list of ArchiveStatusStorable Objects for your links or packages. Only use packageÍDS of you want to adress a full package, else use linkIDs only.
use the extraction API extraction/getArchiveSettings to get a list of ArchiveSettingsAPIStorable objects.
modify the ArchiveSettingsAPIStorable objects. ArchiveSettingsAPIStorable.extractionPath="..."
use extraction/setArchiveSettings to save your modifications.