PUT api/sms/update-message-subscription

Request Information

URI Parameters

None.

Body Parameters

UpdateMessageSubscriptionRequest
NameDescriptionTypeAdditional 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": "de756acf-5439-4341-a793-f5c08c9aeaec",
  "userId": "fd6236a7-0938-4f08-9237-84e425c1c19f",
  "agencyId": "8f4cb7c4-16c6-42a5-b97d-51cd7c192f6b",
  "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>8f4cb7c4-16c6-42a5-b97d-51cd7c192f6b</AgencyId>
  <MessageSubscriptionId>de756acf-5439-4341-a793-f5c08c9aeaec</MessageSubscriptionId>
  <NewIsActive>true</NewIsActive>
  <NewIsAutoUnsubscribe>true</NewIsAutoUnsubscribe>
  <NewPhoneNumberFrom>sample string 5</NewPhoneNumberFrom>
  <NewUserPhoneNumber>sample string 4</NewUserPhoneNumber>
  <NewWebhookUrl>sample string 6</NewWebhookUrl>
  <UserId>fd6236a7-0938-4f08-9237-84e425c1c19f</UserId>
</UpdateMessageSubscriptionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

NowCertsApiResultWithDatabaseId
NameDescriptionTypeAdditional information
DatabaseId

globally unique identifier

None.

Status

ApiStatus

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "databaseId": "e4738dcc-7333-4624-b6ae-ea417a702938",
  "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>e4738dcc-7333-4624-b6ae-ea417a702938</DatabaseId>
</NowCertsApiResultWithDatabaseId>