Managing Entitlements Sequences
Administrative APIs for managing entitlements sequences
The standard create, read, update and delete management operations are performed by calling the addEntitlementsSeqence, getEntitlementsSequence or listEntitlementsSetquences, setEntitlementsSequence and removeEntitlementsSequence APIs respectively.
Common Entitlements Sequence Types
# A transition within an entitlements sequence
type EntitlementsSequenceTransition {
# Name of entitlements set
entitlementsSetName: String!
# ISO8601 period string - if not specified then this transition
# is the final state for all users on the sequence.
duration: String
}
# A sequence of entitlements set transitions
type EntitlementsSequence {
# Name of the entitlements sequence
name: String!
# Description of the entitlements sequence
description: String
# Time of initial creation of an entitlements sequence in milliseconds
# since epoch. Number is integral, float type provides sufficient
# precision.
createdAtEpochMs: Float!
# Time of most recent update of an entitlements sequence in milliseconds
# since epoch. Number is integral, float type provides sufficient
# precision.
updatedAtEpochMs: Float!
# Version of the entitlements sequence. Incremented each time an update is made.
version: Int!
# Sequence of transitions a user will go through in order. Must not be empty.
transitions: [EntitlementsSequenceTransition!]!
}Add a New Entitlements Sequence
A new entitlements sequence can be added to the system by calling the addEntitlementsSequence mutation. All entitlements sets referenced by the transitions in the sequence must exist prior to adding the entitlements sequence.
Possible Errors
InvalidArgumentError will be returned if the transitions array is empty or any transitions earlier in the list than the last transition do not specify a duration.
EntitlementsSetNotFoundError will be returned if any of the referenced entitlements sets do not exist
ServiceError will be returned for internal errors.
Adding a new entitlements sequence using SDK.
Get an Entitlements Sequence
Call the getEntitlementsSequence query to retrieve an entitlements set by name.
Possible Errors
ServiceError will be returned for internal errors.
Retrieving an entitlements sequence using SDK.
List all Entitlements Sequences
Call the listEntitlementsSequences query to list all of the entitlements setquences in the system. The results list is paginated with a page size of 10. To retrieve all results your application must implement the following algorithm.
Possible Errors
ServiceError will be returned for internal errors.
Listing entitlements sequences using SDK.
Update an Existing Entitlements Sequence
Call the setEntitlementsSequence mutation to update the contents of an existing entitlements sequence. The updated entitlements sequence is returned.
Possible Errors
InvalidArgumentError will be returned if the transitions array is empty or any transitions earlier in the list than the last transition do not specify a duration.
EntitlementsSetNotFoundError will be returned if any of the referenced entitlements sets do not exist
ServiceError will be returned for internal errors.
Updating an entitlements sequence using SDK.
Remove an Entitlements Sequence
Call the removeEntitlementsSequence mutation to remove an existing entitlements sequence by name. The removed entitlements sequence is returned on success. null is returned if the named entitlements sequence cannot be found.
Possible Errors
ServiceError will be returned for internal errors.
Removing an entitlements sequence using SDK.
Last updated