createContractGroup
Create a new contract group. Fails if a group with the same properties already exists.
Arguments
Input fields for creating a contract group.
- KT-CT-10053: Invalid validity period.
- KT-CT-10054: Duplicate contracts in membership set.
- KT-CT-10055: Unknown trait type.
- KT-CT-10056: Invalid trait data.
- KT-CT-10057: Duplicate trait types in contract group.
- KT-CT-10058: A contract group with these properties already exists.
- KT-CT-10065: Membership end date is before start date.
- KT-CT-10069: Memberships outside the contract group's validity period.
- KT-CT-10070: One or more contracts could not be found.
- KT-CT-1113: Disabled GraphQL field requested.
- KT-CT-7899: An internal error occurred.
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation CreateContractGroup($input: CreateContractGroupInput!) {
createContractGroup(input: $input) {
contractGroupIdentifier
}
}
Variables
{
"input": CreateContractGroupInput
}
Response
{
"data": {
"createContractGroup": {
"contractGroupIdentifier": "33911541"
}
}
}