PUT api/sms/update-message-subscription
Request Information
URI Parameters
None.
Body Parameters
UpdateMessageSubscriptionRequestName | Description | Type | Additional information |
---|---|---|---|
MessageSubscriptionId | globally unique identifier |
None. |
|
UserId | globally unique identifier |
None. |
|
AgencyId | globally unique identifier |
None. |
|
NewUserPhoneNumber | string |
None. |
|
NewPhoneNumberFrom | string |
None. |
|
NewWebhookUrl | string |
None. |
|
NewIsAutoUnsubscribe | boolean |
None. |
|
NewIsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "messageSubscriptionId": "a99808e9-b4a0-4011-a97c-9aca37ccfac3", "userId": "6c6fc899-6aac-4aa8-a093-7a4a2849129f", "agencyId": "afccb0aa-7eef-4ff5-a267-f47a47ee5448", "newUserPhoneNumber": "sample string 4", "newPhoneNumberFrom": "sample string 5", "newWebhookUrl": "sample string 6", "newIsAutoUnsubscribe": true, "newIsActive": true }
application/xml, text/xml
Sample:
<UpdateMessageSubscriptionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.OData.SMS"> <AgencyId>afccb0aa-7eef-4ff5-a267-f47a47ee5448</AgencyId> <MessageSubscriptionId>a99808e9-b4a0-4011-a97c-9aca37ccfac3</MessageSubscriptionId> <NewIsActive>true</NewIsActive> <NewIsAutoUnsubscribe>true</NewIsAutoUnsubscribe> <NewPhoneNumberFrom>sample string 5</NewPhoneNumberFrom> <NewUserPhoneNumber>sample string 4</NewUserPhoneNumber> <NewWebhookUrl>sample string 6</NewWebhookUrl> <UserId>6c6fc899-6aac-4aa8-a093-7a4a2849129f</UserId> </UpdateMessageSubscriptionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
NowCertsApiResultWithDatabaseIdName | Description | Type | Additional information |
---|---|---|---|
DatabaseId | globally unique identifier |
None. |
|
Status | ApiStatus |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "databaseId": "f74b5c73-bb29-4f94-9704-2be65c641889", "status": 0, "message": "sample string 2" }
application/xml, text/xml
Sample:
<NowCertsApiResultWithDatabaseId xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities.NowCertsFulcrum"> <Message>sample string 2</Message> <Status>Error</Status> <DatabaseId>f74b5c73-bb29-4f94-9704-2be65c641889</DatabaseId> </NowCertsApiResultWithDatabaseId>