PUT activities Id

PUT/activities/{id}
AuthorizationBearer <token>

Paste your JWT token here

In: header

Path Parameters

idinteger

The unique identifier of the activity to update.

Formatint32
Namestring

The name of the activity.

Length0 <= length <= 120
Price?number

The price of the activity.

Formatdouble
Poster?string

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.

DutchDescriptionstring

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

Length0 <= length <= 2000
EnglishDescriptionstring

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

Length0 <= length <= 2000
DateTimeStartstring

The date and time at which the activity will start.

Formatdate-time
DateTimeEndstring

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
Locationstring

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.

ShowInKoalaboolean

Whether the activity is shown in Koala.

ShowOnWebsiteboolean

Whether the activity is shown on the website.

IsEnrollableboolean

Whether the activity is open for enrollment.

AreParticipantsVisibleboolean

Whether the participants are visible to each other.

IsAdultOnlyboolean

Whether the activity is 18+ only.

IsWeeklyDrinksboolean

Whether the activity belongs to the weekly drinks or not.

AllowedAudience?string

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

application/json

application/json

application/json

application/json

curl -X PUT "https://loading/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
{
  "message": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "message": "string"
}