Skip to content

Channel:UpdateChannel

Updates an existing Notification Channel.

Controller: Channel
Topic: UpdateChannel
Action: Publish
Permissions: None

NameTypeExpectDescription
ChannelIDStringAlwaysThe unique identifier of the existing Channel.
DetailsObjectAlwaysA Channel Details object for identification.
ParametersObjectAlwaysA Channel Parameters object for describing the Channel’s configuration.
IsActiveBooleanSometimesAn optional flag setting whether the Channel should be Active when updated. If omitted, defaults to true.

All fields must be specified, even if they are not changing.

NameTypeExpectDescription
NameStringAlwaysThe user-defined name for the Channel.
DescriptionStringSometimesAn optional description providing further details of the Channel.
MetadataObjectAlwaysAn user-defined object with string values.
NameTypeExpectDescription
TypeStringAlwaysThe Distribution Method to use.
SettingsAnyAlwaysThe settings of the Channel. Format depends on the type.

See Appendix K - Distribution Channels for more information on the appropriate Notification Channel settings for a type.

No Response Body.

Send:

{"Controller":"Channel","Topic":"UpdateChannel","TransactionID":1,"Data":{
"ChannelID":"Umk8R2",
"Parameters":{
"Type":"Push.Web",
"Settings":{
"endpoint":"https://updates.push.services.mozilla.com/wpush/v2/gAAAAABi3j...",
"expirationTime":null,
"keys":{
"auth":"uBw-GNUc...",
"p256dh":"BD0ti6D2A..."
}
}
},
"Details":{
"Name":"ArcLight (Phone)",
"Description":"ArcLight in Firefox Mobile",
"Metadata":{"Category":"Phone"}
}
}}

Receive:

{"Controller":"Channel","Topic":"UpdateChannel","TransactionID":1}