PUT example/api/SmsMessage/{id}
https://app.bwz.se/bedrock/example/api/SmsMessage/{id}
Updates a SmsMessage.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of the SmsMessage to update. |
integer |
Required |
Body Parameters
Sets the text content of the SmsMessage.
UpdateSmsMessageArgsName | Description | Type | Additional information |
---|---|---|---|
Name |
Sets the name. |
string |
Valid name with max 256 characters |
PublicationId |
Sets the publications id. |
integer |
None. |
SenderName |
Sets the name of the sender. |
string |
Required |
DefaultCountryCode |
Sets the default country code of the SmsMessage. Will be used for all recipients without country code in their mobile number. |
integer |
None. |
ScheduledSendDate |
Sets date and time when the SmsMessage will be sent. |
date |
None. |
TextContent |
Sets the text content of the SmsMessage. |
string |
None. |
Request Formats
application/json, text/json
{ "Name": "sample string 1", "PublicationId": 1, "SenderName": "sample string 2", "DefaultCountryCode": 3, "ScheduledSendDate": "2024-11-21T17:46:51.7451354+01:00", "TextContent": "sample string 4" }
application/xml, text/xml
<UpdateSmsMessageArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.SmsMessage"> <DefaultCountryCode>3</DefaultCountryCode> <Name>sample string 1</Name> <PublicationId>1</PublicationId> <ScheduledSendDate>2024-11-21T17:46:51.7451354+01:00</ScheduledSendDate> <SenderName>sample string 2</SenderName> <TextContent>sample string 4</TextContent> </UpdateSmsMessageArgs>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
The updated SmsMessageModel.
SmsMessageModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of the SmsMessage. |
integer |
None. |
Name |
Name of the SmsMessage. |
string |
None. |
CreatedByUserId |
Id of the User creating the SmsMessage. |
integer |
None. |
MessageStatus |
The MessageStatus of the SmsMessage. |
MessageStatus |
None. |
CreationDate |
Date and time when the SmsMessage was created. |
date |
None. |
ModifiedDate |
Date and time when the SmsMessage was last modified. |
date |
None. |
PublicationId |
Id the of Publication the SmsMessage belongs to. |
integer |
None. |
SenderName |
Sender name of the SmsMessage. |
string |
None. |
DefaultCountryCode |
Default country code of the SmsMessage. Will be used for all recipients without country code in their mobile number. |
integer |
None. |
SmsContentId |
Id of the Content holding the content of the SmsMessage. |
integer |
None. |
ScheduledSendDate |
Date and time when the SmsMessage will be sent. |
date |
None. |
Response Formats
application/json, text/json
{ "Id": 1, "Name": "sample string 2", "CreatedByUserId": 3, "MessageStatus": 0, "CreationDate": "2024-11-21T17:46:51.7451354+01:00", "ModifiedDate": "2024-11-21T17:46:51.7451354+01:00", "PublicationId": 6, "SenderName": "sample string 7", "DefaultCountryCode": 8, "SmsContentId": 1, "ScheduledSendDate": "2024-11-21T17:46:51.7451354+01:00" }
application/xml, text/xml
<SmsMessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.SmsMessage"> <CreatedByUserId>3</CreatedByUserId> <CreationDate>2024-11-21T17:46:51.7451354+01:00</CreationDate> <DefaultCountryCode>8</DefaultCountryCode> <Id>1</Id> <MessageStatus>NotReadyToSend</MessageStatus> <ModifiedDate>2024-11-21T17:46:51.7451354+01:00</ModifiedDate> <Name>sample string 2</Name> <PublicationId>6</PublicationId> <ScheduledSendDate>2024-11-21T17:46:51.7451354+01:00</ScheduledSendDate> <SenderName>sample string 7</SenderName> <SmsContentId>1</SmsContentId> </SmsMessageModel>