Update product access
/users/{user_id}/products/{product_id}/accessOverrides the user's access to a product. Only the fields supplied in the request are changed:
durationsets the access duration for this product.schedule_idassigns the user to a schedule; sendnullto remove the assignment.rules_waivedcontrols whether the product's content release rules are waived for this user.
To avoid overwriting a newer version, send the ETag returned by the retrieve operation in the If-Match header.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/users/string/products/string/access" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "denial_reason": "no_access", "ends_at": "2019-08-24T14:15:22Z", "has_access": true, "object": "product_access", "overrides": { "duration": { "type": "-1", "value": 0 }, "rules_waived": true, "schedule_id": "string" }, "product_id": "string", "revision": "string", "sources": [ { "enrollment_id": "string", "kind": "manual" } ], "starts_at": "2019-08-24T14:15:22Z", "user_id": "string" }}Retrieve product access GET
Retrieves the user's effective access to a product, including the sources that grant it (`sources[]`), the reason access is denied when applicable (`denial_reason`), and any overrides applied to the user (`overrides`). The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when updating the product access to avoid overwriting a newer version.
Retrieve a release calendar GET
Returns the content release rules currently in effect for the user in each module and lesson of the product. The response describes the rules, not a list of dated release events.