PUT activities Id

PUT
/activities/{id}

Authorization

Bearer
headerAuthorizationBearer <token>

Paste your JWT token here

Path Parameters

id*integer

The unique identifier of the activity to update.

Formatint32

Request Body

multipart/form-data
  1. body

Represents the DTO for updating an existing activity, containing all necessary information for modifying an activity's properties and associated specification questions. The PutActivityDTO is used to transfer data from the client to the server when updating an existing activity, allowing for changes to be made to the activity's details while ensuring that the provided information is validated appropriately for the update process.

Name*string

The name of the activity.

Length0 <= length <= 120
Price?number

The price of the activity.

Formatdouble
Poster?unknown

The poster file for the activity, which can be uploaded when creating or updating an activity. The Poster property is of type IFormFile, allowing for the handling of file uploads in ASP.NET Core. This property is used to manage the visual representation of the activity, as the poster can be displayed on the website or in the Koala app to attract participants and provide information about the activity. When a poster is uploaded, it can be stored on the server and associated with the activity, enabling better organization and presentation of activities within the system.

DutchDescription*string

A dutch description or arbitrary length, explaining everything there is to know about the activity.

Length0 <= length <= 2000
EnglishDescription*string

An english description or arbitrary length, explaining everything there is to know about the activity.

Length0 <= length <= 2000
DateTimeStart*string

The date and time at which the activity will start.

Formatdate-time
DateTimeEnd*string

The date and time at which the activity will end.

Formatdate-time
UnenrollmentDeadline?string

The deadline for unenrollment from the activity.

Formatdate-time
EnrollmentDeadline?string

The deadline for enrollment from the activity.

Formatdate-time
EnrollOpenDate?string

The date and time at which the activity will be open for enrolling.

Formatdate-time
Location*string

The location where the activity will take place.

Length0 <= length <= 200
ParticipantLimit?integer

The maximum number of participants for the activity.

Formatint32
OrganizerId?integer

The unique identifier of the organizer group.

Formatint32
SpecificationQuestionsJson?string

A JSON string representing the specification questions associated with the activity. This property is used to capture the details of the specification questions in a structured format, allowing for easy serialization and deserialization when creating or updating an activity. The JSON string can contain an array of specification question objects, each with its own properties such as question text, question type, and possible answers. This approach allows for flexibility in managing the specification questions while ensuring that they are properly associated with the activity in the system.

ShowInKoala*boolean

Whether the activity is shown in Koala.

ShowOnWebsite*boolean

Whether the activity is shown on the website.

IsEnrollable*boolean

Whether the activity is open for enrollment.

AreParticipantsVisible*boolean

Whether the participants are visible to each other.

IsAdultOnly*boolean

Whether the activity is 18+ only.

IsWeeklyDrinks*boolean

Whether the activity belongs to the weekly drinks or not.

AllowedAudience?TargetAudience

Represents the target audience for an activity, allowing for the specification of which groups of members are eligible to participate in a given activity. The TargetAudience enum defines various audience options, such as FirstYears, SecondYears, ThirdYearsAndAbove, and Masters, which can be combined using bitwise operations to create more specific audience groups. This entity is used to manage and enforce eligibility criteria for activities based on the academic standing of members, ensuring that activities are appropriately targeted and accessible to the intended audience within the system.

Formatint32
Value in"None""FirstYears""SecondYears""ThirdYearsAndAbove""Masters""Gratie""ActiveMembers""Begunstigers""All"
VatRate?integer

The VAT rate applicable to the activity.

Formatint32
GLAccountId?string

The general ledger account associated with this activity for financial tracking. Dutch: Grootboekrekening

CostCenterId?string

The cost center associated with this activity for financial tracking. Dutch: Kostenplaats

CostUnitId?string

The cost unit associated with this activity for financial tracking. Dutch: Kostendrager

PaymentDeadline?string

The payment deadline for the activity.

Formatdate-time

Response Body

No Content

curl -X PUT 'https://example.com/activities/0' \  -F 'Name=string' \  -F 'DutchDescription=string' \  -F 'EnglishDescription=string' \  -F 'DateTimeStart=2019-08-24T14:15:22Z' \  -F 'DateTimeEnd=2019-08-24T14:15:22Z' \  -F 'Location=string' \  -F 'ShowInKoala=true' \  -F 'ShowOnWebsite=true' \  -F 'IsEnrollable=true' \  -F 'AreParticipantsVisible=true' \  -F 'IsAdultOnly=true' \  -F 'IsWeeklyDrinks=true'
Empty