# pubSubServerPixelUpdate - admin-graphql - MUTATION Version: 2024-07 ## Description Updates the server pixel to connect to a Google PubSub endpoint. Running this mutation deletes any previous subscriptions for the server pixel. ### Access Scopes `write_pixels` access scope. Also: The app must have the read_customer_events and write_server_pixels access scopes. ## Arguments * [pubSubProject](/docs/api/admin-graphql/2024-07/scalars/String): String! - The Google PubSub project ID. * [pubSubTopic](/docs/api/admin-graphql/2024-07/scalars/String): String! - The Google PubSub topic ID. ## Returns * [serverPixel](/docs/api/admin-graphql/2024-07/objects/ServerPixel): ServerPixel The server pixel as configured by the mutation. * [userErrors](/docs/api/admin-graphql/2024-07/objects/ErrorsServerPixelUserError): ErrorsServerPixelUserError! The list of errors that occurred from executing the mutation. ## Examples