Update a company attribute value

With the updateCompanyAttributeValue mutation you can easily update a company attribute value for a given company in your Cycle workspace

1. Update a number attribute value

mutation updateCompanyAttribute {
  updateCompanyAttributeValue(
    companyId: "<productId>"
    attributeDefinitionId: "<attributeId>"
    value: { number: 10 }
  ) {
    __typename
  }
}

2. Update a boolean attribute value

mutation updateCompanyAttribute {
  updateCompanyAttributeValue(
    companyId: "<productId>"
    attributeDefinitionId: "<attributeId>"
    value: { checkbox: true }
  ) {
    __typename
  }
}

3. Update a select attribute value with id

mutation updateCompanyAttribute {
  updateCompanyAttributeValue(
    companyId: "<productId>"
    attributeDefinitionId: "<attributeId>"
    value: { select: "<valueId>" }
  ) {
    __typename
  }
}

4. Update a select attribute value with id

mutation updateCompanyAttribute {
  updateCompanyAttributeValue(
    companyId: "<productId>"
    attributeDefinitionId: "<attributeId>"
    value: { select: "<valueText>" }
  ) {
    __typename
  }
}

Last updated