API endpoint used to insert multiple usage_tracking records in a single request. This method receives a JSON array of objects from the request body, deserializes them, and forwards them to the repository for bulk insertion into the database. Processing flow: 1. Start a stopwatch to measure request processing time. 2. Initialize the database connection context for the repository. 3. Read the request body content. 4. Validate the content (must not be null or empty). 5. Deserialize the JSON payload into a list of usage_tracking models. 6. Extract the company domain from the Authorization header. 7. Call the repository to insert the records in bulk. 8. Convert the repository result into an HTTP response. 9. Log the request and execution time. Error handling: - is handled separately to return database-specific errors. - Any other results in an Internal Server Error response. This endpoint is typically used by client applications (mobile/desktop) to send usage tracking data to the backend in batches.
Request Information
URI Parameters :
None.
Body Parameters :
None.
Response Information
Resource Description :
An representing the HTTP response, including success or error information.
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample not available.