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": "511e236a-0c78-4338-a3b6-c0b60c411209", "userId": "28ea05b1-de00-457e-ba0a-d131f69cd58c", "agencyId": "8f758ef5-78e4-41d3-b0d2-38110f4615a7", "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>8f758ef5-78e4-41d3-b0d2-38110f4615a7</AgencyId> <MessageSubscriptionId>511e236a-0c78-4338-a3b6-c0b60c411209</MessageSubscriptionId> <NewIsActive>true</NewIsActive> <NewIsAutoUnsubscribe>true</NewIsAutoUnsubscribe> <NewPhoneNumberFrom>sample string 5</NewPhoneNumberFrom> <NewUserPhoneNumber>sample string 4</NewUserPhoneNumber> <NewWebhookUrl>sample string 6</NewWebhookUrl> <UserId>28ea05b1-de00-457e-ba0a-d131f69cd58c</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": "aa95c92a-94ff-4b80-870b-5cadf9c038ae", "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>aa95c92a-94ff-4b80-870b-5cadf9c038ae</DatabaseId> </NowCertsApiResultWithDatabaseId>