use the `apiParams` function instead: `apiParams('threads', ordering='-modified')`