Replace a TOU
PUT {{stripeUrl}}/admin/v1/TermsOfUses/{{termsofusesid}}
Use this example to modify a terms of use.
The request must contain:
- termsofuseid - obtain using the search method
- termsofusestatementsid of the terms of use statements associated with the terms of use
You can specify up to 365 days for the optional expiryDays
attribute.
Request Body
{"name"=>"Sample Terms Of Use for French Tenants", "description"=>"Sample Terms Of Use for French Tenants", "active"=>false, "expiryDays"=>15, "statements"=>[{"value"=>"{{termsofusestatementsid}}"}], "schemas"=>["urn:ietf:params:scim:schemas:oracle:idcs:TermsOfUse"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Date | string | ||
Content-Type | string | ||
x-content-sha256 | string |
RESPONSES
status: OK
{"idcsLastModifiedBy":{"type":"App","value":"006ee45fc7b04d0ab2649d643d8fec42","display":"OAuth Client","$ref":"https://tenant-base-url/admin/v1/Apps/006ee45fc7b04d0ab2649d643d8fec42"},"description":"Sample Terms Of Use for French Tenants","idcsCreatedBy":{"type":"App","display":"OAuth Client","value":"006ee45fc7b04d0ab2649d643d8fec42","$ref":"https://tenant-base-url/admin/v1/Apps/006ee45fc7b04d0ab2649d643d8fec42"},"id":"8f29335b4a304e82b930d8e8cdf386e9","meta":{"created":"2018-10-18T20:54:21.668Z","lastModified":"2018-10-18T22:47:29.946Z","resourceType":"TermsOfUse","location":"https://tenant-base-url/admin/v1/TermsOfUses/8f29335b4a304e82b930d8e8cdf386e9"},"active":false,"name":"Sample Terms Of Use for French Tenants","expiryDays":15,"statements":[{"value":"3a81c262d65f4c37983a5295b9d3698b","locale":"fr","$ref":"https://tenant-base-url/admin/v1/TermsOfUseStatements/3a81c262d65f4c37983a5295b9d3698b"}],"schemas":["urn:ietf:params:scim:schemas:oracle:idcs:TermsOfUse"]}