PostActivities
Function: postActivities()
postActivities<
ThrowOnError>(options?):RequestResult<PostActivitiesResponses,PostActivitiesErrors,ThrowOnError>
Defined in: app/api/sdk.gen.ts:34
Creates a new activity based on the provided data. The PostActivity endpoint allows clients to submit a request to create a new activity by providing the necessary information in the PostActivityDTO. This endpoint is designed to handle the creation of activities, ensuring that the provided data is validated and processed correctly, while also enforcing proper authorization to ensure that only authorized users can create new activities within the system. Upon successful creation, the endpoint returns the details of the newly created activity along with a 201 Created status code, allowing clients to easily access and reference the new activity in subsequent operations.
Type Parameters
ThrowOnError
ThrowOnError *extends* boolean = false
Parameters
options?
Options<PostActivitiesData, ThrowOnError>
Returns
RequestResult<PostActivitiesResponses, PostActivitiesErrors, ThrowOnError>