Skip to content

Record Create Handler

Allows to create a record and store it to your MongoDB instance.

typescript
type handlers = { 
  CreateRecord: { 
    handle(context: Context): Promise<Response> 
  }
}

Endpoint

Method: POST Path: /your-endpoint/api/record/:sri

Payload:

typescript
type Payload = {
  /**
   * The record data
   */
  data: { [key: string]: any }
}