Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 9a365ed

Browse files
committed
document keytrial query params, add notbefore and notafter query params
1 parent b552ef5 commit 9a365ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/src/core/routes/migration.tsp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,13 @@ namespace Migration {
207207
* - `204`: No keytrials found for specified actor
208208
* - `404`: Specified actor not known
209209
* - `200`: Completed key trials of requested actor
210+
* @param fid: The FID of the actor to query key trials for.
211+
* @param limit: How many response objects to query for at maximum. A value of `0` or not specifying this value at all means no maximum is defined.
212+
* @param id: Query for a specific key trial performed by an actor by the ID of the key trial.
213+
* @param notBefore: Return only key trials and their results performed at or after a specific point in time. UNIX 64 bit timestamp.
214+
* @param notAfter: Return only key trials and their results performed at or before a specific point in time. UNIX 64 bit timestamp.
210215
*/
211-
op getKeyTrials(@path fid: string, @query limit?: uint16 = 0): {
216+
op getKeyTrials(@path fid: string, @query limit?: uint16 = 0, @query id?: string, @query notBefore?: uint64, @query notAfter?: uint64): {
212217
@statusCode statusCode: 204;
213218
@header({name: "Content-Length"}) contentLength: 0;
214219
} | {

0 commit comments

Comments
 (0)