# 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 - accountName (String): The name of the account - accountType (AccountType): Type of the account. Valid types are PUBLISHER, CUSTOMER, CHANNEL_PARTNER, SELF_REGISTERED, UNKNOWN - contactEmail (String): Email address of the Contact in the account - partnerTierName (PartnerTier): Partner tier of the account owning the entitlement. Valid values are END_CUSTOMER and PARTNER_TIER_ONE - 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 - value (String): The value of the custom attribute. If the value is a date-type, use format yyyy/MM/dd - autoDeploy (Boolean): Flag to indicate if the entitlement should be auto-deployed - autoGenerate (Boolean): Whether the entitlement ID is to be auto-generated. - description (String): Description of the entitlement - emailTemplateVariation (String): Name of the email template to be used for entitlement related emails - entitlementId (String): The ID of the entitlement. This is to be specified if you want to generate the entitlement ID yourselves. This means that the autoGenerate flag below is set to false. If the ID matches that of an existing entitlement or line item, then operation will fail. - lineItems (LineItemInput): List of line items contained in the entitlement - activatable (Boolean): Flag to indicate whether this line item is activatable - activationId (String): The activation ID associated with the line item. You may specify this while creation. If you choose to specify this then the autoGenerate flag should be set to false. If the activationID specified, matches with any existing entitlementID or activationID, then you will get an error - 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 - expiryDate (String): End date of the line item in YYYY-MM-DD format - orderType (LineItemOrderType): Type of order for the line item. The default is NEW_ORDER - 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 - quantityPerCopy (Int): Quantity per copy. Minimum value is 1 - startDate (String): Start date of the line item in YYYY-MM-DD format - shipToAddress (String): Address of the ship-to contact - shipToEmail (String): Email address of the ship-to contact