Download GraphQL schema
Configure line item policies
Arguments
activation Id
String!,non-nullrequired
Activation ID of the line item
entitlement Id
String!,non-nullrequired
Entitlement ID containing the line item
policy
Policy configuration details
Return type
Activationactivation Id
String
Mutation sample
mutation configureLineItemPolicies(
$activationId: String!
$entitlementId: String!
$policy: PolicyInput!
) {
configureLineItemPolicies(
activationId: $activationId
entitlementId: $entitlementId
policy: $policy
) {
activationId
}
}Variables
{ "activationId": "Example String", "entitlementId": "Example String", "policy": { "acpiGenerationIdLicense": true, "cancelLicense": true, "extraActivations": 40, "rehosts": { "__typename": "PolicyAttributeInput" }, "repairs": { "__typename": "PolicyAttributeInput" }, "returns": { "__typename": "PolicyAttributeInput" }, "virtualLicense": true } }
Response sample
{ "data": { "activationId": "Example String" } }
Update attributes of line items for an entitlement
Arguments
entitlement Id
String!,non-nullrequired
Entitlement ID containing the line items
line Item Properties
List of line item properties to be updated
Return type
[Lineactivation Id
String
error Msg
String
status
String
Mutation sample
mutation configureLineItemProperties($entitlementId: String!, $lineItemProperties: [LineItemPropertyInput!]!) {
configureLineItemProperties(entitlementId: $entitlementId, lineItemProperties: $lineItemProperties) {
activationId
errorMsg
status
}
}Variables
{ "entitlementId": "Example String", "lineItemProperties": [ { "activationId": "Example String", "attributes": [ { "__typename": "AttributeUpdateInput" } ], "deploy": true, "orderType": "Example String", "parentActivationId": "Example String", "product": { "__typename": "UpdateProductInput" } } ] }
Response sample
{ "data": [ { "activationId": "Example String", "errorMsg": "Example String", "status": "Example String" } ] }
Create a simple Entitlement
Arguments
input
Return type
StringThe String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Mutation sample
mutation createEntitlement($input: CreateEntitlementInput!) {
createEntitlement(input: $input)
}Variables
{ "input": { "accounts": [ { "__typename": "AccountInput" } ], "allowPortalLogin": true, "attributes": [ { "__typename": "AttributeInput" } ], "autoDeploy": true, "autoGenerate": true, "description": "Example String", "emailTemplateVariation": "Example String", "entitlementId": "Example String", "lineItems": [ { "__typename": "LineItemInput" } ], "shipToAddress": "Example String", "shipToEmail": "Example String" } }
Response sample
{ "data": "Example String" }
Create a line item
Arguments
entitlement Id
String!,non-nullrequired
Entitlement ID for which line items are to be created
line Items
List of line items to be created
Return type
Lineresponse
List of line item creation results
Mutation sample
mutation createLineItems($entitlementId: String!, $lineItems: [LineItemInput!]!) {
createLineItems(entitlementId: $entitlementId, lineItems: $lineItems) {
response {
__typename
# ...LineItemResultEntryFragment
}
}
}Variables
{ "entitlementId": "Example String", "lineItems": [ { "activatable": true, "activationId": "Example String", "attributes": [ { "__typename": "AttributeInput" } ], "autoDeploy": true, "autoGenerate": true, "expiryDate": "Example String", "orderType": "Example String", "partNumber": "Example String", "permanent": true, "product": [ { "__typename": "ProductInput" } ], "quantity": 40, "quantityPerCopy": 40, "startDate": "Example String" } ] }
Response sample
{ "data": { "response": [ { "__typename": "LineItemResultEntry" } ] } }
Create maintenance line items
Arguments
entitlement Id
String!,non-nullrequired
Entitlement ID for which maintenance line items are to be created
maintenance Line Items
List of maintenance line items to be created
Return type
[Lineactivation Id
String
error Msg
String
status
String
Mutation sample
mutation createMaintenanceLineItems($entitlementId: String!, $maintenanceLineItems: [MaintenanceLineItemInput!]!) {
createMaintenanceLineItems(entitlementId: $entitlementId, maintenanceLineItems: $maintenanceLineItems) {
activationId
errorMsg
status
}
}Variables
{ "entitlementId": "Example String", "maintenanceLineItems": [ { "activationId": "Example String", "attributes": [ { "__typename": "AttributeInput" } ], "autoDeploy": true, "autoGenerate": true, "expiryDate": "Example String", "maintenanceProduct": { "__typename": "MaintenanceProductInput" }, "permanent": true, "startDate": "Example String" } ] }
Response sample
{ "data": [ { "activationId": "Example String", "errorMsg": "Example String", "status": "Example String" } ] }