younifyd
Menu

deleteChannel

Delete a channel (requires its current version).

Use it in a workflow

  1. Add a step and choose the Commercetools connector.
  2. Pick the deleteChannel action (under Delete).
  3. Fill in the fields below, then reference the result from later steps as {{deletechannel.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation DeleteChannel($id: String, $key: String, $version: Long!) {
  deleteChannel(id: $id, key: $key, version: $version) {
    id
    version
    key
    roles
    nameAllLocales {
      locale
      value
    }
    descriptionAllLocales {
      locale
      value
    }
    address {
      id
      streetName
      streetNumber
      additionalStreetInfo
      postalCode
      city
      region
      state
      country
      company
      department
      building
      apartment
      pOBox
      additionalAddressInfo
      externalId
      key
      phone
      mobile
      email
      fax
      title
      salutation
      firstName
      lastName
      custom {
        typeRef
        type
      }
    }
    geoLocation {
      type
    }
    createdAt
    lastModifiedAt
    reviewRatingStatistics {
      averageRating
      highestRating
      lowestRating
      count
      ratingsDistribution
    }
    custom {
      typeRef {
        typeId
        id
      }
      type {
        key
        nameAllLocales
        descriptionAllLocales
        resourceTypeIds
        id
        version
        createdAt
        lastModifiedAt
        createdBy
        lastModifiedBy
      }
    }
    createdBy {
      isPlatformClient
      clientId
      externalUserId
      anonymousId
      customerRef {
        typeId
        id
      }
      userRef {
        typeId
        id
      }
      associateRef {
        typeId
        id
      }
      attributedTo {
        clientId
        source
        userRef
      }
    }
    lastModifiedBy {
      isPlatformClient
      clientId
      externalUserId
      anonymousId
      customerRef {
        typeId
        id
      }
      userRef {
        typeId
        id
      }
      associateRef {
        typeId
        id
      }
      attributedTo {
        clientId
        source
        userRef
      }
    }
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

idstring

Queries with specified ID

keystring

Queries with specified key

versionstringrequired
json
{
  "version": "string",
  "id": "string",
  "key": "string"
}

Response

Read the result with {{deletechannel.response.data.data.deleteChannel}}. If the API returns errors, the step fails and they are at {{deletechannel.response.data.errors}}.

idstring
versionstring
keystring
rolesarray<string>
nameAllLocalesarray<object>
localeobject
valueobject
descriptionAllLocalesarray<object>
localeobject
valueobject
addressobject
idstring
streetNamestring
streetNumberstring
additionalStreetInfostring
postalCodestring
citystring
regionstring
statestring
countrystring
companystring
departmentstring
buildingstring
apartmentstring
pOBoxstring
additionalAddressInfostring
externalIdstring
keystring
phonestring
mobilestring
emailstring
faxstring
titlestring
salutationstring
firstNamestring
lastNamestring
customobject2 fields
geoLocationobject
typestring
createdAtstring
lastModifiedAtstring
reviewRatingStatisticsobject
averageRatingnumber
highestRatingnumber
lowestRatingnumber
countstring
ratingsDistributionstring
customobject
typeRefobject2 fields
typeobject10 fields
createdByobject
isPlatformClientboolean
clientIdstring
externalUserIdstring
anonymousIdstring
customerRefobject2 fields
userRefobject2 fields
associateRefobject2 fields
attributedToobject3 fields
lastModifiedByobject
isPlatformClientboolean
clientIdstring
externalUserIdstring
anonymousIdstring
customerRefobject2 fields
userRefobject2 fields
associateRefobject2 fields
attributedToobject3 fields

Need more? See the Commercetools guide for connection setup and behaviour shared by every action.

Was this page helpful?