Update a subscription

put

/api/rest/2.0/data/sms/subscription

Update consent of a phone number.

Request

Supported Media Types
Body ()
The request body defines the details of the subscription message to be updated.
Root Schema : PhoneNumberSubscriptionDetails
Type: object
Title: PhoneNumberSubscriptionDetails
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : PhoneNumberSubscription
Type: object
Title: PhoneNumberSubscription
Show Source
Nested Schema : history
Type: array
PhoneNumberSubscription_Field_History_Description
Show Source
Nested Schema : PhoneNumberSubscriptionHistory
Type: object
Title: PhoneNumberSubscriptionHistory
Show Source
  • Allowed Values: [ "CreateEntity", "UpdateEntity", "ContactAsynchronousClear", "BulkUpdate", "WorkFlowUpdateRule", "ProgramBuilderUpdateRule", "ProgramBuilderDedupeHandler", "BulkApi", "DataImport", "SharedListRunUpdateRule", "InitialLoad", "SmsSubscriptionRestApi", "SmsSubscriptionBulkApi", "SmsSubscriptionDataImport", "SmsReply", "Visitor" ]
  • Title: System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top