@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api elmah.io API
@version v3
@auth ApiKey api_key in query
@endpoints 24
@hint download_for_search
@toc deployments(4), heartbeats(1), installations(1), logs(7), messages(9), sourcemaps(1), uptimechecks(1)

@group deployments
@endpoint GET /v3/deployments
@returns(200)
@errors {401, 402, 429}

@endpoint POST /v3/deployments
@optional {body: map}
@returns(201)
@errors {400, 401, 402, 404, 429}

@endpoint GET /v3/deployments/{id}
@required {id: any}
@returns(200)
@errors {400, 401, 402, 429}

@endpoint DELETE /v3/deployments/{id}
@required {id: any}
@returns(204)
@errors {400, 401, 402, 404, 429}

@endgroup

@group heartbeats
@endpoint POST /v3/heartbeats/{logId}/{id}
@required {id: any, logId: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endgroup

@group installations
@endpoint POST /v3/installations/{logId}
@required {logId: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 404, 429}

@endgroup

@group logs
@endpoint GET /v3/logs
@returns(200)
@errors {401, 402, 429}

@endpoint POST /v3/logs
@optional {body: map}
@returns(201)
@errors {400, 401, 402, 429}

@endpoint GET /v3/logs/{id}
@required {id: any}
@returns(200)
@errors {401, 402, 404, 429}

@endpoint DELETE /v3/logs/{id}
@required {id: any}
@returns(204)
@errors {400, 401, 402, 404, 409, 429}

@endpoint POST /v3/logs/{id}/_disable
@required {id: any}
@returns(200)
@errors {401, 402, 404, 429}

@endpoint POST /v3/logs/{id}/_enable
@required {id: any}
@returns(200)
@errors {401, 402, 404, 429}

@endpoint GET /v3/logs/{id}/_diagnose
@required {id: any}
@returns(200)
@errors {401, 402, 404, 429}

@endgroup

@group messages
@endpoint GET /v3/messages/{logId}
@required {logId: any}
@optional {pageIndex: any, pageSize: any, query: any, from: any, to: any, includeHeaders: any, searchAfter: any}
@returns(200)
@errors {400, 401, 402, 429}

@endpoint DELETE /v3/messages/{logId}
@required {logId: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint POST /v3/messages/{logId}
@required {logId: any}
@optional {body: map}
@returns(200)
@returns(201)
@errors {400, 401, 402, 404, 413, 429}

@endpoint GET /v3/messages/{logId}/{id}
@required {id: any, logId: any}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint DELETE /v3/messages/{logId}/{id}
@required {id: any, logId: any}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint POST /v3/messages/{logId}/_fix
@required {logId: any}
@optional {body: map}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint POST /v3/messages/{logId}/{id}/_hide
@required {id: any, logId: any}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint POST /v3/messages/{logId}/{id}/_fix
@required {id: any, logId: any}
@optional {markAllAsFixed: any}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endpoint POST /v3/messages/{logId}/_bulk
@required {logId: any}
@optional {body: [map]}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endgroup

@group sourcemaps
@endpoint POST /v3/sourcemaps/{logId}
@required {logId: any, Path: any, SourceMap: any, MinifiedJavaScript: any}
@returns(200)
@errors {400, 401, 402, 404, 429}

@endgroup

@group uptimechecks
@endpoint GET /v3/uptimechecks
@returns(200)
@errors {401, 402, 429}

@endgroup

@end
