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: api/consent-management-API.yaml
+72Lines changed: 72 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,13 @@ paths:
206
206
type: integer
207
207
format: int64
208
208
example: 1734422400000
209
+
- name: sort
210
+
in: query
211
+
description: Sort results using a comma-separated list of sort items. Each item can be either `{field}:{direction}` or `{field}`, which defaults to `desc`. Supported fields are `createdTime`, `updatedTime`, `validityTime`, `status`, `groupId`, and `consentType`. Supported directions are `asc` and `desc`. A maximum of 3 sort items is allowed. If `validityTime` is used, consents without an expiry are treated as having the latest validity time. If omitted, results are sorted by `createdTime:desc`.
212
+
schema:
213
+
type: string
214
+
default: createdTime:desc
215
+
example: "status:asc,createdTime:desc"
209
216
- name: limit
210
217
in: query
211
218
description: The maximum number of results to return in a single page. Used for pagination.
@@ -361,6 +368,53 @@ paths:
361
368
$ref: "#/components/schemas/ConsentErrorCommon"
362
369
security:
363
370
- basicAuth: []
371
+
/consents/group-ids:
372
+
get:
373
+
summary: Retrieve group IDs for a user
374
+
description: |
375
+
Retrieves the distinct group IDs associated with the specified user ID.
376
+
377
+
Results are scoped to the requesting organization and include only group IDs.
378
+
Group metadata is not returned.
379
+
operationId: consents-group-ids-GET
380
+
tags:
381
+
- Consents
382
+
parameters:
383
+
- in: header
384
+
name: org-id
385
+
required: true
386
+
description: "The unique identifier for the organization."
387
+
schema:
388
+
type: string
389
+
example: "ORG-001"
390
+
- name: userId
391
+
in: query
392
+
required: true
393
+
description: The user ID to search for.
394
+
schema:
395
+
type: string
396
+
example: "user1@example.com"
397
+
responses:
398
+
"200":
399
+
description: Successfully retrieved the group IDs matching the search criteria.
0 commit comments