# CreateEntitlementInput **Type:** GraphQL inputs **Description:** Input to create an entitlement ## Fields - accounts (AccountInput): List of accounts associated with the entitlement. If account is not provided, the entitlement will be associated with UNKNOWN_ORG_UNIT(default account) - CurrentOwner (Boolean): Whether this account is the current owner of the entitlement in the distribution chain - accountId (String): ID of the account. Example: "SampleOrg12345" - accountName (String): Name of the account - accountType (String): Type of the account. Valid types are PUBLISHER, CUSTOMER, CHANNEL_PARTNER, SELF_REGISTERED, UNKNOWN. Example: "CUSTOMER" - contactEmail (String): Email address of the Contact in the account. Example: "Joe@example.com" - partnerTierName (String): Partner tier of the account owning the entitlement. Valid values are END_CUSTOMER and PARTNER_TIER_ONE. Example: "END_CUSTOMER" - allowPortalLogin (Boolean): Whether the customer can use the entitlement ID to log into the End-User Portal after the entitlement is deployed - attributes (AttributeInput): List of entitlement custom attributes. Note that mandatory custom attributes must be included in this list - name (String): Name of the custom attribute. Example: "REGION" - value (JSON): Value assigned to the custom attribute. Format and example depend on the type: - Single Text: "EMEA" - Multi-valued text: provide list of values between brackets [] delimited by , (e.g. ["Text1", "Text2"]) - Date: "YYYY/MM/DD" (e.g. "2025/12/31") - Number: 12345 - autoDeploy (Boolean): Flag to indicate if the entitlement should be auto-deployed - autoGenerate (Boolean): Whether the entitlement ID is to be auto-generated. Example: false - description (String): Description of the entitlement. Example: "Description for entitlement" - emailTemplateVariation (String): Name of the email template to be used for entitlement related emails. Example: "DEFAULT" - entitlementId (String): Entitlement ID of the entitlement. If you specify the entitlement ID, then it must be unique across all entitlements and line items. If you specify the entitlement ID here, then the autoGenerate flag must be set to false. Example: "ent-id-1234" - lineItems (LineItemInput): List of line items contained in the entitlement - activatable (Boolean): Whether this line item is activatable - activationId (String): Activation ID of the line item. If you specify the activation ID, then it must be unique across all entitlements and line items. If you specify the activation ID here, then the autoGenerate flag must be set to false. Example: "act-id-1234" - attributes (AttributeInput): List of custom attributes related to the line item - autoDeploy (Boolean): Whether the Line item should be auto-deployed - autoGenerate (Boolean): Whether the activation ID should be auto-generated. Example: false - expiryDate (String): End date of the line item in YYYY-MM-DD format. Example: "2025-01-01" - orderType (String): Type of order for the line item. The default is NEW_ORDER. Example: "NEW_ORDER" Default: NEW_ORDER - partNumber (String): PartNumber - permanent (Boolean): Whether this line item is permanent. A permanent line item has no expiration date - product (ProductInput): List of products entitled by this line item - quantity (Int): Number of copies for the entitlement. Example: 1 - quantityPerCopy (Int): Quantity per copy. Minimum value is 1. Default: 1 - startDate (String): Start date of the line item in YYYY-MM-DD format. Example: "2025-01-01" - shipToAddress (String): Address of the ship-to contact. Example: "Building-Street-City" - shipToEmail (String): Email address of the ship-to contact. Example: "Joe@example.com"