Skip to content

SudoSOS Back-end API / events / parseUpdateEventRequestParameters

Function: parseUpdateEventRequestParameters() ​

ts
function parseUpdateEventRequestParameters(
   req, 
   partial?, 
id?): Promise<UpdateEventParams>;

Parse the body of a request to an UpdateEventParams object

Parameters ​

ParameterTypeDefault valueDescription
reqRequestWithTokenundefined-
partialbooleanfalseWhether all attributes are required or not
id?numberundefined-

Returns ​

Promise<UpdateEventParams>

Deprecated ​

Events are out of scope for SudoSOS. Delete from 01/11/2026.

Throws ​

Error - validation failed