1.6 KiB
Here's the info for Ece and team: Here's a recording of how we've enabled this for another customer. How it works is like this:
- There are two properties, one with the alert/banner copy, and a true/false for toggling if the banner should be hidden or not. This gives you guys control over the copy should you need to change what the alert says (see below).
- To show or hide the banner, simply go into the property and toggle it to true or false - true to show it, false to hide it.
The above covers the way you can manually alert your drivers to something else going on in the Spark app. But this is where it gets really cool! Below, I'll share how you guys can update the banner and toggle it automatically.
I've shared the payloads below, but this is super easy to implement. The engineering team really just needs one endpoint to both toggle the banner and update the copy. The endpoint is our POST school properties values endpoint. (Note that Walmart uses api2.northpass.com and not api.northpass!) The use-case here would be that if a portion of the Spark app goes down, or there is enough disruption in other portions of the app, an automation triggers that fires one API call to the RC to show the banner and write some specific copy.
Payload URL: https://api2.northpass.com/v2/properties/school
Example Payload:
{ "data": { "attributes": { "properties": {
"alert-banner-copy": "Please pardon our disruptions!",
"showhide-alert-banner": "true"
}
}
}
}