SpiraPlan: REST Web Service (v7.0)

See all operations

POST: system/events/search?starting_row={starting_row}&number_of_rows={number_of_rows}&sort_field={sort_field}&sort_direction={sort_direction}


Retrieves a filtered list of event logs from across the system

Filter on EVENT TYPE: use the following ints: Error = 1, Warning = 2, Information = 4, SuccessAudit = 8, FailureAudit = 16 (example: [{ "PropertyName": "EventTypeId", "IntValue": 2 }]). Filter on DATE TIME: specify a datetime - this works with just the date (recommended). (example: [{"PropertyName": "EventTimeUtc", "StringValue": "2021-03-03"}]). Filter on CATEGORY example: [{ "PropertyName": "EventCategory", "StringValue": "Application" }]. Filter on CODE example: [{ "PropertyName": "EventCode", "IntValue": 0 }]. Filter on MESSAGE example: [{ "PropertyName": "Message", "StringValue": "Database violation" }]. Filter on DETAILS example: [{ "PropertyName": "Details", "StringValue": "System.Net" }].

How to Execute

To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):


Request Parameters

Name Description
starting_row The starting row (starting with 1)
number_of_rows The number of rows to retrieve (max 500)
sort_field The field to sort by (do not sort by EventTypeName - this is for display purposes only)
sort_direction The sort direction [ASC|DESC]

Request Body

Property Description

Return Data

The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.

Property Description