Retrieve product access
/users/{user_id}/products/{product_id}/accessRetrieves 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.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/users/string/products/string/access"{ "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" }}List product access GET
Returns the user's effective access to each product, using cursor-based pagination and sorted by product ID. If the current credentials are restricted to specific products, only those products are included.
Update product access PATCH
Overrides the user's access to a product. Only the fields supplied in the request are changed: - `duration` sets the access duration for this product. - `schedule_id` assigns the user to a schedule; send `null` to remove the assignment. - `rules_waived` controls 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.