Anchor to serverPixelCreateserver
serverPixelCreate
mutation
Requires access scope. Also: The app must have the read_customer_events access scope, write_server_pixels access scope, and user access permission.
Creates a new unconfigured server pixel. A single server pixel can exist for an app and shop combination. If you call this mutation when a server pixel already exists, then an error will return.
Anchor to ServerPixelCreatePayload returnsServerPixelCreatePayload returns
- Anchor to serverPixelserver•
Pixel The new server pixel.
- Anchor to userErrorsuser•
Errors [ErrorsServer non-nullPixel User Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation serverPixelCreate {
serverPixelCreate {
serverPixel {
# ServerPixel fields
}
userErrors {
field
message
}
}
}
Input
{}
{}