POST example/api/event/{id}/connectexternalobject

https://app.bwz.se/bedrock/example/api/event/{id}/connectexternalobject

Connects an Event to an external object

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id of the Event

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

ConnectExternalObjectArgs
NameDescriptionTypeAdditional 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

Sample:
{
  "ExternalObjectId": "sample string 1",
  "ExternalObjectName": "sample string 2",
  "TransactionHandlerId": 1
}

application/xml, text/xml

Sample:
<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:

Sample not available.

Response Information

Resource Description

A model conatining the Event and the connected External Object

EventExternalObjectModel
NameDescriptionTypeAdditional information
EventModel

The EventModel

EventModel

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

Sample:
{
  "EventModel": {
    "Id": 1,
    "Name": "sample string 2",
    "Location": "sample string 3",
    "Description": "sample string 4",
    "PublicationId": 5,
    "MaxParticipants": 1,
    "GoalParticipants": 1,
    "RegistrationOpens": "2024-12-23T06:32:05.2759056+01:00",
    "RegistrationCloses": "2024-12-23T06:32:05.2759056+01:00",
    "EventStart": "2024-12-23T06:32:05.2759056+01:00",
    "EventEnd": "2024-12-23T06:32:05.2759056+01:00",
    "CreatedByUserId": 10,
    "CreationDate": "2024-12-23T06:32:05.2759056+01:00",
    "ModifiedDate": "2024-12-23T06:32:05.2759056+01:00",
    "FormFieldProperties": [
      {
        "FormFieldId": 1,
        "Name": "sample string 2",
        "FieldType": 1,
        "IsRequired": true,
        "FieldDataType": 1,
        "FieldLabel": "sample string 4",
        "Options": [
          {
            "Value": "sample string 1",
            "Label": "sample string 2"
          },
          {
            "Value": "sample string 1",
            "Label": "sample string 2"
          }
        ]
      },
      {
        "FormFieldId": 1,
        "Name": "sample string 2",
        "FieldType": 1,
        "IsRequired": true,
        "FieldDataType": 1,
        "FieldLabel": "sample string 4",
        "Options": [
          {
            "Value": "sample string 1",
            "Label": "sample string 2"
          },
          {
            "Value": "sample string 1",
            "Label": "sample string 2"
          }
        ]
      }
    ],
    "HasPhysicalMeeting": true,
    "HasOnlineMeeting": true,
    "PhysicalMeeting": {
      "Location": "sample string 1",
      "PlaceId": "sample string 2",
      "Longitude": "sample string 3",
      "Latitude": "sample string 4"
    },
    "OnlineMeeting": {
      "MeetingUrl": "sample string 1",
      "MeetingDetails": "sample string 2"
    },
    "RegistrationLink": "sample string 15",
    "EventHasMaxParticipants": true
  },
  "TransactionHandlerId": 1,
  "ExternalObjectId": "sample string 2",
  "ExternalObjectName": "sample string 3"
}

application/xml, text/xml

Sample:
<EventExternalObjectModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Event">
  <EventModel>
    <CreatedByUserId>10</CreatedByUserId>
    <CreationDate>2024-12-23T06:32:05.2759056+01:00</CreationDate>
    <Description>sample string 4</Description>
    <EventEnd>2024-12-23T06:32:05.2759056+01:00</EventEnd>
    <EventHasMaxParticipants>true</EventHasMaxParticipants>
    <EventStart>2024-12-23T06:32:05.2759056+01:00</EventStart>
    <FormFieldProperties xmlns:d3p1="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Form">
      <d3p1:FormFieldModel>
        <d3p1:FieldDataType>Text</d3p1:FieldDataType>
        <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel>
        <d3p1:FieldType>TEXT</d3p1:FieldType>
        <d3p1:FormFieldId>1</d3p1:FormFieldId>
        <d3p1:IsRequired>true</d3p1:IsRequired>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Options>
          <d3p1:FormFieldPossibilityModel>
            <d3p1:Label>sample string 2</d3p1:Label>
            <d3p1:Value>sample string 1</d3p1:Value>
          </d3p1:FormFieldPossibilityModel>
          <d3p1:FormFieldPossibilityModel>
            <d3p1:Label>sample string 2</d3p1:Label>
            <d3p1:Value>sample string 1</d3p1:Value>
          </d3p1:FormFieldPossibilityModel>
        </d3p1:Options>
      </d3p1:FormFieldModel>
      <d3p1:FormFieldModel>
        <d3p1:FieldDataType>Text</d3p1:FieldDataType>
        <d3p1:FieldLabel>sample string 4</d3p1:FieldLabel>
        <d3p1:FieldType>TEXT</d3p1:FieldType>
        <d3p1:FormFieldId>1</d3p1:FormFieldId>
        <d3p1:IsRequired>true</d3p1:IsRequired>
        <d3p1:Name>sample string 2</d3p1:Name>
        <d3p1:Options>
          <d3p1:FormFieldPossibilityModel>
            <d3p1:Label>sample string 2</d3p1:Label>
            <d3p1:Value>sample string 1</d3p1:Value>
          </d3p1:FormFieldPossibilityModel>
          <d3p1:FormFieldPossibilityModel>
            <d3p1:Label>sample string 2</d3p1:Label>
            <d3p1:Value>sample string 1</d3p1:Value>
          </d3p1:FormFieldPossibilityModel>
        </d3p1:Options>
      </d3p1:FormFieldModel>
    </FormFieldProperties>
    <GoalParticipants>1</GoalParticipants>
    <HasOnlineMeeting>true</HasOnlineMeeting>
    <HasPhysicalMeeting>true</HasPhysicalMeeting>
    <Id>1</Id>
    <Location>sample string 3</Location>
    <MaxParticipants>1</MaxParticipants>
    <ModifiedDate>2024-12-23T06:32:05.2759056+01:00</ModifiedDate>
    <Name>sample string 2</Name>
    <OnlineMeeting>
      <MeetingDetails>sample string 2</MeetingDetails>
      <MeetingUrl>sample string 1</MeetingUrl>
    </OnlineMeeting>
    <PhysicalMeeting>
      <Latitude>sample string 4</Latitude>
      <Location>sample string 1</Location>
      <Longitude>sample string 3</Longitude>
      <PlaceId>sample string 2</PlaceId>
    </PhysicalMeeting>
    <PublicationId>5</PublicationId>
    <RegistrationCloses>2024-12-23T06:32:05.2759056+01:00</RegistrationCloses>
    <RegistrationLink>sample string 15</RegistrationLink>
    <RegistrationOpens>2024-12-23T06:32:05.2759056+01:00</RegistrationOpens>
  </EventModel>
  <ExternalObjectId>sample string 2</ExternalObjectId>
  <ExternalObjectName>sample string 3</ExternalObjectName>
  <TransactionHandlerId>1</TransactionHandlerId>
</EventExternalObjectModel>