Marketplace Offering Terms Of Service
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/marketplace-offering-terms-of-service/ |
List Terms of Service configurations |
| GET | /api/marketplace-offering-terms-of-service/{uuid}/ |
Retrieve a Terms of Service configuration |
| POST | /api/marketplace-offering-terms-of-service/ |
Create a Terms of Service configuration |
| PUT | /api/marketplace-offering-terms-of-service/{uuid}/ |
Update a Terms of Service configuration |
| PATCH | /api/marketplace-offering-terms-of-service/{uuid}/ |
Partially update a Terms of Service configuration |
| DELETE | /api/marketplace-offering-terms-of-service/{uuid}/ |
Delete a Terms of Service configuration |
List Terms of Service configurations
Returns a paginated list of Terms of Service configurations for offerings. Visibility depends on user permissions: staff/support see all; service providers see their own; regular users see ToS for offerings they have consented to or shared offerings.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 | |
- API Source:
marketplace_offering_terms_of_service_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
is_active |
boolean | Is active |
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 |
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) | |
offering_uuid |
string (uuid) | |
offering_name |
string | |
terms_of_service |
string | |
terms_of_service_link |
string (uri) | |
version |
string | |
is_active |
boolean | |
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
user_consent |
any | |
has_user_consent |
boolean | |
created |
string (date-time) | |
modified |
string (date-time) |
Retrieve a Terms of Service configuration
Returns the details of a specific Terms of Service configuration.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_offering_terms_of_service_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) | |
offering_uuid |
string (uuid) | |
offering_name |
string | |
terms_of_service |
string | |
terms_of_service_link |
string (uri) | |
version |
string | |
is_active |
boolean | |
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
user_consent |
any | |
has_user_consent |
boolean | |
created |
string (date-time) | |
modified |
string (date-time) |
Create a Terms of Service configuration
Creates a new Terms of Service configuration for an offering. Only one active ToS configuration is allowed per offering.
1 2 3 4 5 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | |
- Model Source:
OfferingTermsOfServiceCreateRequest - API Source:
marketplace_offering_terms_of_service_create
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Field | Type | Required | Description |
|---|---|---|---|
offering |
string (uri) | ✓ | |
terms_of_service |
string | ||
terms_of_service_link |
string (uri) | ||
version |
string | ||
is_active |
boolean | ||
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. | |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
201 -
| Field | Type | Description |
|---|---|---|
offering |
string (uri) | |
terms_of_service |
string | |
terms_of_service_link |
string (uri) | |
version |
string | |
is_active |
boolean | |
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
Update a Terms of Service configuration
Updates an existing Terms of Service configuration. Note that some fields like version and requires_reconsent are protected and cannot be changed after creation.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
OfferingTermsOfServiceRequest - API Source:
marketplace_offering_terms_of_service_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required | Description |
|---|---|---|---|
terms_of_service |
string | ||
terms_of_service_link |
string (uri) | ||
is_active |
boolean | ||
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
offering_name |
string | |
terms_of_service |
string | |
terms_of_service_link |
string (uri) | |
version |
string | |
is_active |
boolean | |
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
user_consent |
any | |
has_user_consent |
boolean | |
created |
string (date-time) | |
modified |
string (date-time) |
Partially update a Terms of Service configuration
Partially updates an existing Terms of Service configuration.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
PatchedOfferingTermsOfServiceRequest - API Source:
marketplace_offering_terms_of_service_partial_update
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required | Description |
|---|---|---|---|
terms_of_service |
string | ||
terms_of_service_link |
string (uri) | ||
is_active |
boolean | ||
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
200 -
| Field | Type | Description |
|---|---|---|
uuid |
string (uuid) | |
offering_uuid |
string (uuid) | |
offering_name |
string | |
terms_of_service |
string | |
terms_of_service_link |
string (uri) | |
version |
string | |
is_active |
boolean | |
requires_reconsent |
boolean | If True, user will be asked to re-consent to the terms of service when the terms of service are updated. |
grace_period_days |
integer | Number of days before outdated consents are automatically revoked. Only applies when requires_reconsent=True. |
user_consent |
any | |
has_user_consent |
boolean | |
created |
string (date-time) | |
modified |
string (date-time) |
Delete a Terms of Service configuration
Deletes a Terms of Service configuration. This is a hard delete and should be used with caution.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
marketplace_offering_terms_of_service_destroy
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
204 - No response body