Update subscription
This method allows you to update the subscription. You can change its properties and provide an ID of a profile if you wish to change it.
Authorizations:
Scopes:
path Parameters
subscriptionId required | string ID of the subscription you want to modify. |
channel required | string Enum: "BLOCKLIST" "CUSTOMER_ENGAGEMENT" "EMAIL" "FACEBOOK" "KAKAO_ALIM" "KAKAO_CHINGU" "LINE" "MMS" "MOBILE_IDENTITY" "MOBILE_PUSH" "NUMBER_LOOKUP" "OPEN_CHANNEL" "RCS" "REGISTRATION" "SMS" "VIBER" "VOICE_VIDEO" "WHATSAPP" "ZALO" Channel name. A separate subscription is needed for each channel. |
Request Body schema:
application/json- Blocklist
- Customer Engagement
- Kakao Alim
- Kakao Chingu
- Line
- MMS
- Mobile Identity
- Mobile Push
- Number Lookup
- Open Channel
- RCS
- Registration
- SMS
- Viber
- Voice and Video
- Zalo
Subscription group.
name | string [ 1 .. 255 ] characters Subscription group name. | ||||||
profile required | object Notification profile object holding settings for your webhook URL and a reference to security settings. | ||||||
| |||||||
events required | Array of strings [ 0 .. 255 ] items Items Enum: "BLOCK" "UNBLOCK" List of events available for subscription. Note that a set of events available for each channel is different; subscription to events that are unavailable for a certain channel will be ignored. For more details, see the availability table. In case you are configuring inbound Subscription please check all the details available here. | ||||||
criteria | Array of objects [ 0 .. 255 ] items Application and Entity pair to match. You can set the rule to match only Application or only Entity if necessary, omitting the other item. | ||||||
Array
| |||||||
resources | Array of strings [ 0 .. 255 ] items List of resources to match. At the moment, this could be a sender name (whether numeric or alpha) used on message submit. | ||||||
users | Array of strings [ 0 .. 255 ] items List of users to match. You can provide usernames from your account. |
Responses
Success.
Bad request.
Unauthorized
Forbidden
Not found.
Too many requests.
Internal Server Error
Request samples
- Payload
- cURL
- Java
- C#
- Go
- Python
- PHP
- JavaScript
- NodeJs
- Ruby
{- "name": "Updated group",
- "profile": {
- "profileId": "NOTIF-98765"
}, - "events": [
- "DELIVERY"
], - "criteria": [
- {
- "applicationId": "production",
- "entityId": "entity1"
}, - {
- "applicationId": "production",
- "entityId": "entity2"
}, - {
- "applicationId": "test",
- "entityId": "entity1"
}
], - "resources": [
- "1234"
], - "users": [
- "user1",
- "user2"
]
}
Response samples
- 200
- 400
- 401
- 403
- 404
- 429
- 500
{- "subscriptionId": "ABC-123-DEF",
- "profile": {
- "profileId": "NOTIF-32395",
- "security": {
- "authId": "NEWAUTH-9291"
}
}
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See