Update a subscription
put
/api/rest/2.0/data/sms/subscription
Update consent of a phone number.
Request
Supported Media Types
- application/json
The request body defines the details of the subscription message to be updated.
Root Schema : PhoneNumberSubscriptionDetails
Type:
object
Title:
Show Source
PhoneNumberSubscriptionDetails
-
entityFieldId:
string
PhoneNumberSubscriptionDetails_Field_EntityFieldId_Description
-
entityId:
string
PhoneNumberSubscriptionDetails_Field_EntityId_Description
-
entityType:
string
PhoneNumberSubscriptionDetails_Field_EntityType_Description
-
isSubscribed:
string
PhoneNumberSubscriptionDetails_Field_IsSubscribed_Description
-
phoneNumber:
string
PhoneNumberSubscriptionDetails_Field_PhoneNumber_Description
-
type:
string
PhoneNumberSubscriptionDetails_Field_Type_Description
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : PhoneNumberSubscription
Type:
object
Title:
Show Source
PhoneNumberSubscription
-
history:
array history
PhoneNumberSubscription_Field_History_Description
-
normalizedPhoneNumber:
string
PhoneNumberSubscription_Field_NormalizedPhoneNumber_Description
-
originalPhoneNumber:
string
PhoneNumberSubscription_Field_OriginalPhoneNumber_Description
-
status:
string
PhoneNumberSubscription_Field_Status_Description
-
timestamp:
string
PhoneNumberSubscription_Field_Timestamp_Description
-
type:
string
PhoneNumberSubscription_Field_Type_Description
Nested Schema : history
Type:
array
PhoneNumberSubscription_Field_History_Description
Show Source
-
Array of:
object PhoneNumberSubscriptionHistory
Title:
PhoneNumberSubscriptionHistory
Nested Schema : PhoneNumberSubscriptionHistory
Type:
object
Title:
Show Source
PhoneNumberSubscriptionHistory
-
sourceType:
string
Allowed Values:
[ "CreateEntity", "UpdateEntity", "ContactAsynchronousClear", "BulkUpdate", "WorkFlowUpdateRule", "ProgramBuilderUpdateRule", "ProgramBuilderDedupeHandler", "BulkApi", "DataImport", "SharedListRunUpdateRule", "InitialLoad", "SmsSubscriptionRestApi", "SmsSubscriptionBulkApi", "SmsSubscriptionDataImport", "SmsReply", "Visitor" ]
-
status:
string
-
timestamp:
string
-
type:
string
-
userId:
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.