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

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

Clones an existing Event

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Id of the Event to clone

integer

Required

Body Parameters

Name of the cloned Event. If no name is set a copy with the suffix " - copy" will be created

CloneEventArgs
NameDescriptionTypeAdditional information
Name

Name of the cloned Event. If no name is set a copy with the suffix " - copy" will be created

string

Valid name with max 256 characters

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1"
}

application/xml, text/xml

Sample:
<CloneEventArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Event">
  <Name>sample string 1</Name>
</CloneEventArgs>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The cloned EventModel

EventModel
NameDescriptionTypeAdditional information
Id

Id of the Event.

integer

None.

Name

Name of the Event.

string

None.

Location

[Deprecated] Location of the Event.

string

None.

Description

Description of the Event.

string

None.

PublicationId

PublicationId of the Event.

integer

None.

MaxParticipants

Maximum amount of participiants in the Event.

integer

None.

GoalParticipants

Expected amount of participant in the Event.

integer

None.

RegistrationOpens

When registration opens for the Event.

date

None.

RegistrationCloses

When registration closes for the Event.

date

None.

EventStart

When the Event starts.

date

None.

EventEnd

When the Event ends.

date

None.

CreatedByUserId

Id of the user who created the Event.

integer

None.

CreationDate

CreationDate of the Event.

date

None.

ModifiedDate

ModifiedDate of the Event.

date

None.

FormFieldProperties

An array containing the FormFields of the Event.

Collection of FormFieldModel

None.

HasPhysicalMeeting

Does the Event have a physical location?

boolean

None.

HasOnlineMeeting

Does the Event have an online meeting?

boolean

None.

PhysicalMeeting

A model containing information about a physical meeting.

PhysicalMeetingModel

None.

OnlineMeeting

A model containing information about an online meeting.

OnlineMeetingModel

None.

RegistrationLink

The registration link for the Event.

string

None.

EventHasMaxParticipants

Is the Event full?

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Location": "sample string 3",
  "Description": "sample string 4",
  "PublicationId": 5,
  "MaxParticipants": 1,
  "GoalParticipants": 1,
  "RegistrationOpens": "2024-11-23T23:14:37.9176251+01:00",
  "RegistrationCloses": "2024-11-23T23:14:37.9176251+01:00",
  "EventStart": "2024-11-23T23:14:37.9176251+01:00",
  "EventEnd": "2024-11-23T23:14:37.9176251+01:00",
  "CreatedByUserId": 10,
  "CreationDate": "2024-11-23T23:14:37.9176251+01:00",
  "ModifiedDate": "2024-11-23T23:14:37.9176251+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
}

application/xml, text/xml

Sample:
<EventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Event">
  <CreatedByUserId>10</CreatedByUserId>
  <CreationDate>2024-11-23T23:14:37.9176251+01:00</CreationDate>
  <Description>sample string 4</Description>
  <EventEnd>2024-11-23T23:14:37.9176251+01:00</EventEnd>
  <EventHasMaxParticipants>true</EventHasMaxParticipants>
  <EventStart>2024-11-23T23:14:37.9176251+01:00</EventStart>
  <FormFieldProperties xmlns:d2p1="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.Form">
    <d2p1:FormFieldModel>
      <d2p1:FieldDataType>Text</d2p1:FieldDataType>
      <d2p1:FieldLabel>sample string 4</d2p1:FieldLabel>
      <d2p1:FieldType>TEXT</d2p1:FieldType>
      <d2p1:FormFieldId>1</d2p1:FormFieldId>
      <d2p1:IsRequired>true</d2p1:IsRequired>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Options>
        <d2p1:FormFieldPossibilityModel>
          <d2p1:Label>sample string 2</d2p1:Label>
          <d2p1:Value>sample string 1</d2p1:Value>
        </d2p1:FormFieldPossibilityModel>
        <d2p1:FormFieldPossibilityModel>
          <d2p1:Label>sample string 2</d2p1:Label>
          <d2p1:Value>sample string 1</d2p1:Value>
        </d2p1:FormFieldPossibilityModel>
      </d2p1:Options>
    </d2p1:FormFieldModel>
    <d2p1:FormFieldModel>
      <d2p1:FieldDataType>Text</d2p1:FieldDataType>
      <d2p1:FieldLabel>sample string 4</d2p1:FieldLabel>
      <d2p1:FieldType>TEXT</d2p1:FieldType>
      <d2p1:FormFieldId>1</d2p1:FormFieldId>
      <d2p1:IsRequired>true</d2p1:IsRequired>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:Options>
        <d2p1:FormFieldPossibilityModel>
          <d2p1:Label>sample string 2</d2p1:Label>
          <d2p1:Value>sample string 1</d2p1:Value>
        </d2p1:FormFieldPossibilityModel>
        <d2p1:FormFieldPossibilityModel>
          <d2p1:Label>sample string 2</d2p1:Label>
          <d2p1:Value>sample string 1</d2p1:Value>
        </d2p1:FormFieldPossibilityModel>
      </d2p1:Options>
    </d2p1:FormFieldModel>
  </FormFieldProperties>
  <GoalParticipants>1</GoalParticipants>
  <HasOnlineMeeting>true</HasOnlineMeeting>
  <HasPhysicalMeeting>true</HasPhysicalMeeting>
  <Id>1</Id>
  <Location>sample string 3</Location>
  <MaxParticipants>1</MaxParticipants>
  <ModifiedDate>2024-11-23T23:14:37.9176251+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-11-23T23:14:37.9176251+01:00</RegistrationCloses>
  <RegistrationLink>sample string 15</RegistrationLink>
  <RegistrationOpens>2024-11-23T23:14:37.9176251+01:00</RegistrationOpens>
</EventModel>