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
+19-1Lines changed: 19 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,18 @@ 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
+
default: 5
457
+
- name: before
458
+
in: query
459
+
description: Limits the number of sponsorships returned. If provided, will return sponsors before the page. Can not set if `after` is set.
460
+
schema:
461
+
type: string
462
+
default: 5
451
463
responses:
452
464
"200":
453
465
description: Sponsorships fetched successfully
@@ -459,6 +471,12 @@ paths:
459
471
data:
460
472
type: object
461
473
properties:
474
+
before:
475
+
type: string
476
+
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.
477
+
after:
478
+
type: string
479
+
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