POST example/api/smsmessage/{id}/connectexternalobject
https://app.bwz.se/bedrock/example/api/smsmessage/{id}/connectexternalobject
Connects a SmsMessage to an ExternalObject
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of the SmsMessage |
integer |
Required |
Body Parameters
Id of the TransactionHandler, only needed if you have more than one TransactionHandler for your site. Otherwise it will be found automatically
ConnectExternalObjectArgsName | Description | Type | Additional information |
---|---|---|---|
ExternalObjectId |
The Id of the External Object that should be connected to the Entity |
string |
Required |
ExternalObjectName |
The name of the External Object |
string |
None. |
TransactionHandlerId |
Id of the TransactionHandler, only needed if you have more than one TransactionHandler for your site. Otherwise it will be found automatically |
integer |
None. |
Request Formats
application/json, text/json
{ "ExternalObjectId": "sample string 1", "ExternalObjectName": "sample string 2", "TransactionHandlerId": 1 }
application/xml, text/xml
<ConnectExternalObjectArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models"> <ExternalObjectId>sample string 1</ExternalObjectId> <ExternalObjectName>sample string 2</ExternalObjectName> <TransactionHandlerId>1</TransactionHandlerId> </ConnectExternalObjectArgs>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
A model conatining the SmsMessage and the connected External Object
SmsMessageExternalObjectModelName | Description | Type | Additional information |
---|---|---|---|
SmsMessageModel |
The SmsMessage model |
SmsMessageModel |
None. |
TransactionHandlerId |
The Id of the connected TransactionHandler |
integer |
None. |
ExternalObjectId |
The Id of the connected External Object |
string |
None. |
ExternalObjectName |
The name of the connected External Object |
string |
None. |
Response Formats
application/json, text/json
{ "SmsMessageModel": { "Id": 1, "Name": "sample string 2", "CreatedByUserId": 3, "MessageStatus": 0, "CreationDate": "2024-11-24T01:18:05.4811076+01:00", "ModifiedDate": "2024-11-24T01:18:05.4811076+01:00", "PublicationId": 6, "SenderName": "sample string 7", "DefaultCountryCode": 8, "SmsContentId": 1, "ScheduledSendDate": "2024-11-24T01:18:05.4811076+01:00" }, "TransactionHandlerId": 1, "ExternalObjectId": "sample string 2", "ExternalObjectName": "sample string 3" }
application/xml, text/xml
<SmsMessageExternalObjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.SmsMessage"> <ExternalObjectId>sample string 2</ExternalObjectId> <ExternalObjectName>sample string 3</ExternalObjectName> <SmsMessageModel> <CreatedByUserId>3</CreatedByUserId> <CreationDate>2024-11-24T01:18:05.4811076+01:00</CreationDate> <DefaultCountryCode>8</DefaultCountryCode> <Id>1</Id> <MessageStatus>NotReadyToSend</MessageStatus> <ModifiedDate>2024-11-24T01:18:05.4811076+01:00</ModifiedDate> <Name>sample string 2</Name> <PublicationId>6</PublicationId> <ScheduledSendDate>2024-11-24T01:18:05.4811076+01:00</ScheduledSendDate> <SenderName>sample string 7</SenderName> <SmsContentId>1</SmsContentId> </SmsMessageModel> <TransactionHandlerId>1</TransactionHandlerId> </SmsMessageExternalObjectModel>