As of GraphQL Admin API version 2027-01, the interface has an field. Applying a rollout makes a treatment's changes permanent for every buyer. shows the outcome of the latest attempt to apply each change, so your app can find changes that failed.
is null before the first attempt to apply the change. With an online access token, it's also null if the staff member can't read the changed resource. It uses the existing access scope.
query {
rollout(id: "gid://shopify/Rollout/1") {
treatments {
changes(first: 10) {
nodes {
id
applyResult {
status
completedAt
errorCode
}
}
}
}
}
}
query {
rollout(id: "gid://shopify/Rollout/1") {
treatments {
changes(first: 10) {
nodes {
id
applyResult {
status
completedAt
errorCode
}
}
}
}
}
}
status:IN_PROGRESS,SUCCESSorFAILURE.: when the attempt finished. It'snullwhile in progress, or if the time wasn't recorded.: why the change failed, when known:RESOURCE_NOT_FOUND,VALIDATION_FAILED,LIMIT_EXCEEDED,INVALID_CHANGEorINTERNAL_ERROR.
Was this page helpful?