Marketplace User Offering Consents
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/marketplace-user-offering-consents/ |
List user offering consents |
| GET | /api/marketplace-user-offering-consents/{uuid}/ |
Retrieve a user offering consent |
| POST | /api/marketplace-user-offering-consents/ |
Grant consent to an offering's Terms of Service |
| PUT | /api/marketplace-user-offering-consents/{uuid}/ |
Update |
| PATCH | /api/marketplace-user-offering-consents/{uuid}/ |
Partial Update |
| DELETE | /api/marketplace-user-offering-consents/{uuid}/ |
Delete |
| Other Actions | ||
| POST | /api/marketplace-user-offering-consents/{uuid}/revoke/ |
Revoke consent to Terms of Service |
Core CRUD
List user offering consents
Returns a paginated list of Terms of Service consents for the current user. Staff and support users can see all consents.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
marketplace_user_offering_consents_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
has_consent |
boolean | Has consent |
o |
array | Ordering |
offering |
string | Offering URL |
offering_uuid |
string (uuid) | Offering UUID |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
requires_reconsent |
boolean | Requires reconsent |
user |
string | User URL |
user_uuid |
string (uuid) | User UUID |
version |
string | Version |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
user_uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
agreement_date |
string (date-time) | |
version |
string | |
revocation_date |
string (date-time) | |
created |
string (date-time) | |
user_username |
string | Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
user_full_name |
string | |
user_email |
string (email) | |
offering_name |
string | |
offering_slug |
string | |
offering_url |
string (uri) | |
modified |
string (date-time) | |
has_consent |
boolean | |
requires_reconsent |
boolean |
Retrieve a user offering consent
Returns the details of a specific consent record.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_user_offering_consents_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
user_uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
agreement_date |
string (date-time) | |
version |
string | |
revocation_date |
string (date-time) | |
created |
string (date-time) | |
user_username |
string | Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
user_full_name |
string | |
user_email |
string (email) | |
offering_name |
string | |
offering_slug |
string | |
offering_url |
string (uri) | |
modified |
string (date-time) | |
has_consent |
boolean | |
requires_reconsent |
boolean |
Grant consent to an offering's Terms of Service
Creates a consent record for the current user and a specific offering. This indicates that the user has accepted the active Terms of Service for that offering. If a consent already exists (even if revoked), it will be reactivated and updated with the current ToS version.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
UserOfferingConsentCreateRequest - API Source:
marketplace_user_offering_consents_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required |
|---|---|---|
offering |
string (uuid) | ✓ |
201 -
| Field | Type |
|---|---|
offering |
string (uuid) |
Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
UserOfferingConsentRequest - API Source:
marketplace_user_offering_consents_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
version |
string |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
user_uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
agreement_date |
string (date-time) | |
version |
string | |
revocation_date |
string (date-time) | |
created |
string (date-time) | |
user_username |
string | Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
user_full_name |
string | |
user_email |
string (email) | |
offering_name |
string | |
offering_slug |
string | |
offering_url |
string (uri) | |
modified |
string (date-time) | |
has_consent |
boolean | |
requires_reconsent |
boolean |
Partial Update
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedUserOfferingConsentRequest - API Source:
marketplace_user_offering_consents_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
version |
string |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
user_uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
agreement_date |
string (date-time) | |
version |
string | |
revocation_date |
string (date-time) | |
created |
string (date-time) | |
user_username |
string | Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
user_full_name |
string | |
user_email |
string (email) | |
offering_name |
string | |
offering_slug |
string | |
offering_url |
string (uri) | |
modified |
string (date-time) | |
has_consent |
boolean | |
requires_reconsent |
boolean |
Delete
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_user_offering_consents_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body
Other Actions
Revoke consent to Terms of Service
Revokes a user's consent to the Terms of Service for an offering. The consent record is marked with a revocation date, and the user may lose access to related resources if consent is required.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_user_offering_consents_revoke
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
user_uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
agreement_date |
string (date-time) | |
version |
string | |
revocation_date |
string (date-time) | |
created |
string (date-time) | |
user_username |
string | Required. 128 characters or fewer. Lowercase letters, numbers and @/./+/-/_ characters |
user_full_name |
string | |
user_email |
string (email) | |
offering_name |
string | |
offering_slug |
string | |
offering_url |
string (uri) | |
modified |
string (date-time) | |
has_consent |
boolean | |
requires_reconsent |
boolean |