Menu
updateProject
Update the current project's settings using an array of update actions.
Use it in a workflow
- Add a step and choose the Commercetools connector.
- Pick the updateProject action (under Update).
- Fill in the fields below, then reference the result from later steps as
{{updateproject.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.
mutation UpdateProject($version: Long!, $actions: [ProjectSettingsUpdateAction!]!) {
updateProject(version: $version, actions: $actions) {
key
name
languages
trialUntil
carts {
deleteDaysAfterLastModification
allowAddingUnpublishedProducts
countryTaxRateFallbackEnabled
totalPriceDiscountDoesNotReduceExternalTax
taxRoundingMode
priceRoundingMode
}
shoppingLists {
deleteDaysAfterLastModification
}
version
externalOAuth {
url
authorizationHeader
}
searchIndexing {
products {
status
lastModifiedBy
lastModifiedAt
}
orders {
status
lastModifiedBy
lastModifiedAt
}
customers {
status
lastModifiedBy
lastModifiedAt
}
businessUnits {
status
lastModifiedBy
lastModifiedAt
}
}
messages {
enabled
deleteDaysAfterCreation
}
countries
currencies
shippingRateInputType {
type
}
createdAt
discounts {
productVsCartDiscountCombination
discountCombinationMode
}
inventory {
reservationExpirationInMinutes
releaseExpiredReservations
}
productCatalogModel
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"version": "string",
"actions": [
{
"changeBusinessUnitSearchStatus": {
"status": "string"
},
"changeCartsConfiguration": {
"cartsConfiguration": "string"
},
"changeCountries": {
"countries": "string"
},
"changeCountryTaxRateFallbackEnabled": {
"countryTaxRateFallbackEnabled": "string"
},
"changeCurrencies": {
"currencies": "string"
},
"changeCustomerSearchStatus": {
"status": "string"
},
"changeLanguages": {
"languages": "string"
},
"changeMessagesConfiguration": {
"messagesConfiguration": "string"
},
"changeMessagesEnabled": {
"messagesEnabled": "string"
},
"changeMyBusinessUnitStatusOnCreation": {
"status": "string"
},
"changeName": {
"name": "string"
},
"changeOrderSearchStatus": {
"status": "string"
}
}
]
}
Response
Read the result with {{updateproject.response.data.data.updateProject}}. If the API returns errors, the step fails and they are at {{updateproject.response.data.errors}}.
Need more? See the Commercetools guide for connection setup and behaviour shared by every action.
Was this page helpful?