You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/specs/openapi/admin/admin.yaml
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -426,7 +426,7 @@ paths:
426
426
get:
427
427
summary: Get Sponsorships
428
428
description: |
429
-
Returns a list of sponsorships associated with the specified policy ID.
429
+
Returns a list of sponsorships associated with the specified policy ID. The results are paginated.
430
430
431
431
<Note title="Header Access Token">
432
432
To call this endpoint, you must use your [access token](/docs/how-to-create-access-keys) in the [authorization header](/docs/how-to-use-api-keys-in-http-headers) of the API request.
@@ -448,6 +448,16 @@ paths:
448
448
schema:
449
449
type: integer
450
450
default: 5
451
+
- name: after
452
+
in: query
453
+
description: Limits the number of sponsorships returned. If provided, will return sponsors after the page. Can not set if `before` is set.
454
+
schema:
455
+
type: string
456
+
- name: before
457
+
in: query
458
+
description: Limits the number of sponsorships returned. If provided, will return sponsors before the page. Can not set if `after` is set.
459
+
schema:
460
+
type: string
451
461
responses:
452
462
"200":
453
463
description: Sponsorships fetched successfully
@@ -459,6 +469,12 @@ paths:
459
469
data:
460
470
type: object
461
471
properties:
472
+
before:
473
+
type: string
474
+
description: String - used for pagination. If there are previous results, `before` field is returned in the response and can be passed in the request to fetch the previous page. Can be null if there are no previous results.
475
+
after:
476
+
type: string
477
+
description: String - used for pagination. If more results are available `after` field is returned in the response and can be passed in the request to fetch the next page. Can be null if there are no more results.
0 commit comments