POST api/v1/event/createsimple

Create simple event

Request Information

URI Parameters

None.

Body Parameters

Event
NameDescriptionTypeAdditional information
IsActive

boolean

None.

Id

string

None.

Title

string

None.

Description

string

None.

ShortDescription

string

None.

Place

string

None.

Location

LocationDetail

None.

EventAttributes

Collection of EventAttribute

None.

PriceCategories

Collection of PriceCategory

None.

FileAttachments

Collection of EventAttachment

None.

ImageUrl

string

None.

Quicklink

string

None.

Hits

integer

None.

Distance

string

None.

RegionId

integer

None.

RegionName

string

None.

RegisteredParticipants

integer

None.

RegistrationDeadline

date

None.

CreationDate

date

None.

StartDate

date

None.

EndDate

date

None.

VisibleFromDate

date

None.

VisibleToDate

date

None.

Organizer

Organizer

None.

MaxAttendees

integer

None.

ResponsiblePerson

ResponsiblePerson

None.

ExternalId

string

None.

DiscountCode

boolean

None.

EventType

integer

None.

MemberAccess

MemberEventAccess

None.

SeasonId

integer

None.

VatMode

VatMode

None.

AttachedClubDiscount

decimal number

None.

ClubId

integer

None.

AffiliateId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IsActive": true,
  "Id": "sample string 2",
  "Title": "sample string 3",
  "Description": "sample string 4",
  "ShortDescription": "sample string 5",
  "Place": "sample string 6",
  "Location": {
    "Address1": "sample string 1",
    "Address2": "sample string 2",
    "Address3": "sample string 3",
    "ZipCode": "sample string 4",
    "City": "sample string 5",
    "County": "sample string 6",
    "Country": "sample string 7",
    "Latitude": "sample string 8",
    "Longitude": "sample string 9"
  },
  "EventAttributes": [
    {
      "Id": 1,
      "EventId": 2,
      "Title": "sample string 3",
      "Active": true,
      "EventAttributeType": 1,
      "IsRequired": true,
      "Priority": 6,
      "ShowInList": true,
      "IsLocked": true,
      "RelatesTo": 9,
      "RelatesToDetail": 10,
      "UseOnWaitingList": true,
      "ShowInConfirmation": true,
      "MinimumNumber": 13,
      "MaximumNumber": 14,
      "DefaultNumber": 15,
      "SelectedAttributeOptionId": 16,
      "SelectedValue": "sample string 17",
      "EventAttributeOptions": [
        {
          "Id": 1,
          "AttributeId": 2,
          "Title": "sample string 3",
          "IsActive": true,
          "Priority": 5,
          "Price": 6.0,
          "IsVisibleForAdmin": true,
          "GroupId": 8,
          "DisabledToCategory": 9,
          "AdditionalInfo": "sample string 10",
          "PriceGroupId": 11
        },
        {
          "Id": 1,
          "AttributeId": 2,
          "Title": "sample string 3",
          "IsActive": true,
          "Priority": 5,
          "Price": 6.0,
          "IsVisibleForAdmin": true,
          "GroupId": 8,
          "DisabledToCategory": 9,
          "AdditionalInfo": "sample string 10",
          "PriceGroupId": 11
        }
      ]
    },
    {
      "Id": 1,
      "EventId": 2,
      "Title": "sample string 3",
      "Active": true,
      "EventAttributeType": 1,
      "IsRequired": true,
      "Priority": 6,
      "ShowInList": true,
      "IsLocked": true,
      "RelatesTo": 9,
      "RelatesToDetail": 10,
      "UseOnWaitingList": true,
      "ShowInConfirmation": true,
      "MinimumNumber": 13,
      "MaximumNumber": 14,
      "DefaultNumber": 15,
      "SelectedAttributeOptionId": 16,
      "SelectedValue": "sample string 17",
      "EventAttributeOptions": [
        {
          "Id": 1,
          "AttributeId": 2,
          "Title": "sample string 3",
          "IsActive": true,
          "Priority": 5,
          "Price": 6.0,
          "IsVisibleForAdmin": true,
          "GroupId": 8,
          "DisabledToCategory": 9,
          "AdditionalInfo": "sample string 10",
          "PriceGroupId": 11
        },
        {
          "Id": 1,
          "AttributeId": 2,
          "Title": "sample string 3",
          "IsActive": true,
          "Priority": 5,
          "Price": 6.0,
          "IsVisibleForAdmin": true,
          "GroupId": 8,
          "DisabledToCategory": 9,
          "AdditionalInfo": "sample string 10",
          "PriceGroupId": 11
        }
      ]
    }
  ],
  "PriceCategories": [
    {
      "Description": "sample string 1",
      "Active": true,
      "ExternalId": "sample string 3",
      "RecurringType": 4,
      "RecurEvery": 5,
      "PaymentCount": 6,
      "RecurringPriceDetails": [
        {
          "Name": "sample string 1",
          "PriceId": 2,
          "Price": 3.0,
          "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
          "IsFirstPayment": true
        },
        {
          "Name": "sample string 1",
          "PriceId": 2,
          "Price": 3.0,
          "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
          "IsFirstPayment": true
        }
      ],
      "MembershipCategoryId": 7,
      "Id": 8,
      "Title": "sample string 9",
      "Price": 10.0
    },
    {
      "Description": "sample string 1",
      "Active": true,
      "ExternalId": "sample string 3",
      "RecurringType": 4,
      "RecurEvery": 5,
      "PaymentCount": 6,
      "RecurringPriceDetails": [
        {
          "Name": "sample string 1",
          "PriceId": 2,
          "Price": 3.0,
          "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
          "IsFirstPayment": true
        },
        {
          "Name": "sample string 1",
          "PriceId": 2,
          "Price": 3.0,
          "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
          "IsFirstPayment": true
        }
      ],
      "MembershipCategoryId": 7,
      "Id": 8,
      "Title": "sample string 9",
      "Price": 10.0
    }
  ],
  "FileAttachments": [
    {
      "Title": "sample string 1",
      "Extension": "sample string 2",
      "Size": "sample string 3",
      "Url": "sample string 4"
    },
    {
      "Title": "sample string 1",
      "Extension": "sample string 2",
      "Size": "sample string 3",
      "Url": "sample string 4"
    }
  ],
  "ImageUrl": "sample string 7",
  "Quicklink": "sample string 8",
  "Hits": 9,
  "Distance": "sample string 10",
  "RegionId": 11,
  "RegionName": "sample string 12",
  "RegisteredParticipants": 13,
  "RegistrationDeadline": "2024-10-13T13:03:37.6418219+02:00",
  "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
  "StartDate": "2024-10-13T13:03:37.6418219+02:00",
  "EndDate": "2024-10-13T13:03:37.6418219+02:00",
  "VisibleFromDate": "2024-10-13T13:03:37.6418219+02:00",
  "VisibleToDate": "2024-10-13T13:03:37.6418219+02:00",
  "Organizer": {
    "Id": 1,
    "MemberId": 2,
    "Name": "sample string 3",
    "ShortName": "sample string 4",
    "Description": "sample string 5",
    "ContactPerson": "sample string 6",
    "PhoneNumber": "sample string 7",
    "Email": "sample string 8",
    "MobileNumber": "sample string 9",
    "ImageUrl": "sample string 10",
    "Url": "sample string 11",
    "RegionId": 12,
    "RegionName": "sample string 13",
    "Location": {
      "Address1": "sample string 1",
      "Address2": "sample string 2",
      "Address3": "sample string 3",
      "ZipCode": "sample string 4",
      "City": "sample string 5",
      "County": "sample string 6",
      "Country": "sample string 7",
      "Latitude": "sample string 8",
      "Longitude": "sample string 9"
    },
    "IsMembershipClub": true,
    "IsSearchable": true,
    "ShowClubInfo": true,
    "MemberList": true,
    "ShowClubResponsible": true,
    "Registered": "2024-10-13T13:03:37.6418219+02:00",
    "OrganizationNumber": "sample string 20",
    "PayoutReference": "sample string 21",
    "TextPricename": "sample string 22",
    "CheckPlaceConflict": true,
    "CheckInstructorConflict": true,
    "SettlementAccounts": [
      {
        "Id": 1,
        "OrganizerId": 2,
        "AccountNumber": "sample string 3",
        "FullName": "sample string 4",
        "Phone": "sample string 5",
        "Mobile": "sample string 6",
        "Email": "sample string 7",
        "Status": 8,
        "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
        "Active": true,
        "IsDefault": true
      },
      {
        "Id": 1,
        "OrganizerId": 2,
        "AccountNumber": "sample string 3",
        "FullName": "sample string 4",
        "Phone": "sample string 5",
        "Mobile": "sample string 6",
        "Email": "sample string 7",
        "Status": 8,
        "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
        "Active": true,
        "IsDefault": true
      }
    ],
    "Responsible": {
      "Name": "sample string 1",
      "Phone": "sample string 2",
      "Mobile": "sample string 3",
      "Email": "sample string 4"
    },
    "Accountant": {
      "Name": "sample string 1",
      "Phone": "sample string 2",
      "Mobile": "sample string 3",
      "Email": "sample string 4"
    },
    "Invoice": {
      "Reference": "sample string 1",
      "Phone": "sample string 2",
      "Email": "sample string 3",
      "CompanyName": "sample string 4",
      "Address1": "sample string 5",
      "Address2": "sample string 6",
      "Address3": "sample string 7",
      "Address4": "sample string 8",
      "Country": "sample string 9",
      "OrgNumber": "sample string 10",
      "SenderFname": "sample string 11",
      "SenderLname": "sample string 12"
    },
    "Users": [
      {
        "UserId": 1,
        "Username": "sample string 2",
        "Role": 3,
        "ReceiveSettlement": true
      },
      {
        "UserId": 1,
        "Username": "sample string 2",
        "Role": 3,
        "ReceiveSettlement": true
      }
    ],
    "ClubId": 25,
    "AffiliateId": 26
  },
  "MaxAttendees": 14,
  "ResponsiblePerson": {
    "FullName": "sample string 1",
    "Email": "sample string 2",
    "Phone": "sample string 3",
    "Mobile": "sample string 4"
  },
  "ExternalId": "sample string 15",
  "DiscountCode": true,
  "EventType": 17,
  "MemberAccess": {
    "EventId": 1
  },
  "SeasonId": 18,
  "VatMode": 0,
  "AttachedClubDiscount": 19.0,
  "ClubId": 20,
  "AffiliateId": 21
}

Response Information

Resource Description

The event, with all related id's

ServerResponseOfEvent
NameDescriptionTypeAdditional information
HttpStatus

integer

None.

Message

string

None.

Data

Event

None.

Next

string

None.

Previous

string

None.

Response Formats

application/json, text/json

Sample:
{
  "HttpStatus": 1,
  "Message": "sample string 2",
  "Data": {
    "IsActive": true,
    "Id": "sample string 2",
    "Title": "sample string 3",
    "Description": "sample string 4",
    "ShortDescription": "sample string 5",
    "Place": "sample string 6",
    "Location": {
      "Address1": "sample string 1",
      "Address2": "sample string 2",
      "Address3": "sample string 3",
      "ZipCode": "sample string 4",
      "City": "sample string 5",
      "County": "sample string 6",
      "Country": "sample string 7",
      "Latitude": "sample string 8",
      "Longitude": "sample string 9"
    },
    "EventAttributes": [
      {
        "Id": 1,
        "EventId": 2,
        "Title": "sample string 3",
        "Active": true,
        "EventAttributeType": 1,
        "IsRequired": true,
        "Priority": 6,
        "ShowInList": true,
        "IsLocked": true,
        "RelatesTo": 9,
        "RelatesToDetail": 10,
        "UseOnWaitingList": true,
        "ShowInConfirmation": true,
        "MinimumNumber": 13,
        "MaximumNumber": 14,
        "DefaultNumber": 15,
        "SelectedAttributeOptionId": 16,
        "SelectedValue": "sample string 17",
        "EventAttributeOptions": [
          {
            "Id": 1,
            "AttributeId": 2,
            "Title": "sample string 3",
            "IsActive": true,
            "Priority": 5,
            "Price": 6.0,
            "IsVisibleForAdmin": true,
            "GroupId": 8,
            "DisabledToCategory": 9,
            "AdditionalInfo": "sample string 10",
            "PriceGroupId": 11
          },
          {
            "Id": 1,
            "AttributeId": 2,
            "Title": "sample string 3",
            "IsActive": true,
            "Priority": 5,
            "Price": 6.0,
            "IsVisibleForAdmin": true,
            "GroupId": 8,
            "DisabledToCategory": 9,
            "AdditionalInfo": "sample string 10",
            "PriceGroupId": 11
          }
        ]
      },
      {
        "Id": 1,
        "EventId": 2,
        "Title": "sample string 3",
        "Active": true,
        "EventAttributeType": 1,
        "IsRequired": true,
        "Priority": 6,
        "ShowInList": true,
        "IsLocked": true,
        "RelatesTo": 9,
        "RelatesToDetail": 10,
        "UseOnWaitingList": true,
        "ShowInConfirmation": true,
        "MinimumNumber": 13,
        "MaximumNumber": 14,
        "DefaultNumber": 15,
        "SelectedAttributeOptionId": 16,
        "SelectedValue": "sample string 17",
        "EventAttributeOptions": [
          {
            "Id": 1,
            "AttributeId": 2,
            "Title": "sample string 3",
            "IsActive": true,
            "Priority": 5,
            "Price": 6.0,
            "IsVisibleForAdmin": true,
            "GroupId": 8,
            "DisabledToCategory": 9,
            "AdditionalInfo": "sample string 10",
            "PriceGroupId": 11
          },
          {
            "Id": 1,
            "AttributeId": 2,
            "Title": "sample string 3",
            "IsActive": true,
            "Priority": 5,
            "Price": 6.0,
            "IsVisibleForAdmin": true,
            "GroupId": 8,
            "DisabledToCategory": 9,
            "AdditionalInfo": "sample string 10",
            "PriceGroupId": 11
          }
        ]
      }
    ],
    "PriceCategories": [
      {
        "Description": "sample string 1",
        "Active": true,
        "ExternalId": "sample string 3",
        "RecurringType": 4,
        "RecurEvery": 5,
        "PaymentCount": 6,
        "RecurringPriceDetails": [
          {
            "Name": "sample string 1",
            "PriceId": 2,
            "Price": 3.0,
            "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
            "IsFirstPayment": true
          },
          {
            "Name": "sample string 1",
            "PriceId": 2,
            "Price": 3.0,
            "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
            "IsFirstPayment": true
          }
        ],
        "MembershipCategoryId": 7,
        "Id": 8,
        "Title": "sample string 9",
        "Price": 10.0
      },
      {
        "Description": "sample string 1",
        "Active": true,
        "ExternalId": "sample string 3",
        "RecurringType": 4,
        "RecurEvery": 5,
        "PaymentCount": 6,
        "RecurringPriceDetails": [
          {
            "Name": "sample string 1",
            "PriceId": 2,
            "Price": 3.0,
            "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
            "IsFirstPayment": true
          },
          {
            "Name": "sample string 1",
            "PriceId": 2,
            "Price": 3.0,
            "ChargeDate": "2024-10-13T13:03:37.6418219+02:00",
            "IsFirstPayment": true
          }
        ],
        "MembershipCategoryId": 7,
        "Id": 8,
        "Title": "sample string 9",
        "Price": 10.0
      }
    ],
    "FileAttachments": [
      {
        "Title": "sample string 1",
        "Extension": "sample string 2",
        "Size": "sample string 3",
        "Url": "sample string 4"
      },
      {
        "Title": "sample string 1",
        "Extension": "sample string 2",
        "Size": "sample string 3",
        "Url": "sample string 4"
      }
    ],
    "ImageUrl": "sample string 7",
    "Quicklink": "sample string 8",
    "Hits": 9,
    "Distance": "sample string 10",
    "RegionId": 11,
    "RegionName": "sample string 12",
    "RegisteredParticipants": 13,
    "RegistrationDeadline": "2024-10-13T13:03:37.6418219+02:00",
    "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
    "StartDate": "2024-10-13T13:03:37.6418219+02:00",
    "EndDate": "2024-10-13T13:03:37.6418219+02:00",
    "VisibleFromDate": "2024-10-13T13:03:37.6418219+02:00",
    "VisibleToDate": "2024-10-13T13:03:37.6418219+02:00",
    "Organizer": {
      "Id": 1,
      "MemberId": 2,
      "Name": "sample string 3",
      "ShortName": "sample string 4",
      "Description": "sample string 5",
      "ContactPerson": "sample string 6",
      "PhoneNumber": "sample string 7",
      "Email": "sample string 8",
      "MobileNumber": "sample string 9",
      "ImageUrl": "sample string 10",
      "Url": "sample string 11",
      "RegionId": 12,
      "RegionName": "sample string 13",
      "Location": {
        "Address1": "sample string 1",
        "Address2": "sample string 2",
        "Address3": "sample string 3",
        "ZipCode": "sample string 4",
        "City": "sample string 5",
        "County": "sample string 6",
        "Country": "sample string 7",
        "Latitude": "sample string 8",
        "Longitude": "sample string 9"
      },
      "IsMembershipClub": true,
      "IsSearchable": true,
      "ShowClubInfo": true,
      "MemberList": true,
      "ShowClubResponsible": true,
      "Registered": "2024-10-13T13:03:37.6418219+02:00",
      "OrganizationNumber": "sample string 20",
      "PayoutReference": "sample string 21",
      "TextPricename": "sample string 22",
      "CheckPlaceConflict": true,
      "CheckInstructorConflict": true,
      "SettlementAccounts": [
        {
          "Id": 1,
          "OrganizerId": 2,
          "AccountNumber": "sample string 3",
          "FullName": "sample string 4",
          "Phone": "sample string 5",
          "Mobile": "sample string 6",
          "Email": "sample string 7",
          "Status": 8,
          "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
          "Active": true,
          "IsDefault": true
        },
        {
          "Id": 1,
          "OrganizerId": 2,
          "AccountNumber": "sample string 3",
          "FullName": "sample string 4",
          "Phone": "sample string 5",
          "Mobile": "sample string 6",
          "Email": "sample string 7",
          "Status": 8,
          "CreationDate": "2024-10-13T13:03:37.6418219+02:00",
          "Active": true,
          "IsDefault": true
        }
      ],
      "Responsible": {
        "Name": "sample string 1",
        "Phone": "sample string 2",
        "Mobile": "sample string 3",
        "Email": "sample string 4"
      },
      "Accountant": {
        "Name": "sample string 1",
        "Phone": "sample string 2",
        "Mobile": "sample string 3",
        "Email": "sample string 4"
      },
      "Invoice": {
        "Reference": "sample string 1",
        "Phone": "sample string 2",
        "Email": "sample string 3",
        "CompanyName": "sample string 4",
        "Address1": "sample string 5",
        "Address2": "sample string 6",
        "Address3": "sample string 7",
        "Address4": "sample string 8",
        "Country": "sample string 9",
        "OrgNumber": "sample string 10",
        "SenderFname": "sample string 11",
        "SenderLname": "sample string 12"
      },
      "Users": [
        {
          "UserId": 1,
          "Username": "sample string 2",
          "Role": 3,
          "ReceiveSettlement": true
        },
        {
          "UserId": 1,
          "Username": "sample string 2",
          "Role": 3,
          "ReceiveSettlement": true
        }
      ],
      "ClubId": 25,
      "AffiliateId": 26
    },
    "MaxAttendees": 14,
    "ResponsiblePerson": {
      "FullName": "sample string 1",
      "Email": "sample string 2",
      "Phone": "sample string 3",
      "Mobile": "sample string 4"
    },
    "ExternalId": "sample string 15",
    "DiscountCode": true,
    "EventType": 17,
    "MemberAccess": {
      "EventId": 1
    },
    "SeasonId": 18,
    "VatMode": 0,
    "AttachedClubDiscount": 19.0,
    "ClubId": 20,
    "AffiliateId": 21
  },
  "Next": "sample string 3",
  "Previous": "sample string 4"
}