PUT activities Id
BearerAuthorizationBearer <token>Paste your JWT token here
id*integerThe unique identifier of the activity to update.
int32multipart/form-data- 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*stringThe name of the activity.
0 <= length <= 120Price?numberThe price of the activity.
doublePoster?unknownThe 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*stringA dutch description or arbitrary length, explaining everything there is to know about the activity.
0 <= length <= 2000EnglishDescription*stringAn english description or arbitrary length, explaining everything there is to know about the activity.
0 <= length <= 2000DateTimeStart*stringThe date and time at which the activity will start.
date-timeDateTimeEnd*stringThe date and time at which the activity will end.
date-timeUnenrollmentDeadline?stringThe deadline for unenrollment from the activity.
date-timeEnrollmentDeadline?stringThe deadline for enrollment from the activity.
date-timeEnrollOpenDate?stringThe date and time at which the activity will be open for enrolling.
date-timeLocation*stringThe location where the activity will take place.
0 <= length <= 200ParticipantLimit?integerThe maximum number of participants for the activity.
int32OrganizerId?integerThe unique identifier of the organizer group.
int32SpecificationQuestionsJson?stringA 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*booleanWhether the activity is shown in Koala.
ShowOnWebsite*booleanWhether the activity is shown on the website.
IsEnrollable*booleanWhether the activity is open for enrollment.
AreParticipantsVisible*booleanWhether the participants are visible to each other.
IsAdultOnly*booleanWhether the activity is 18+ only.
IsWeeklyDrinks*booleanWhether the activity belongs to the weekly drinks or not.
AllowedAudience?TargetAudienceRepresents 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.
int32"None""FirstYears""SecondYears""ThirdYearsAndAbove""Masters""Gratie""ActiveMembers""Begunstigers""All"VatRate?integerThe VAT rate applicable to the activity.
int32GLAccountId?stringThe general ledger account associated with this activity for financial tracking. Dutch: Grootboekrekening
CostCenterId?stringThe cost center associated with this activity for financial tracking. Dutch: Kostenplaats
CostUnitId?stringThe cost unit associated with this activity for financial tracking. Dutch: Kostendrager
PaymentDeadline?stringThe payment deadline for the activity.
date-timeNo 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'