Error
You can also interact with Error objects through the Relativity Services API. For more information, see Error under RSAPI reference for .NET.
Create an Error resource
You can use the POST method to perform to create an Error object. For more information, see Create and update resources.
Sample URL
<host>/Relativity.REST/Workspace/1016766/Error
Request
You can set the Message, Server, Source, and URL fields for an Error.
{
"Artifact Type ID":18,
"Artifact Type Name":"Error",
"Parent Artifact":{
"Artifact ID":1015644
},
"Message":"Event handler for my custom application failed",
"Server":"My Server",
"Source":"My Custom Application",
"URL":"Custom application event handler"
}
Response
The following JSON is returned when an Error is successfully created.
{
"Results":[
{
"StatusCode":201,
"Success":true,
"Message":"1016774 created successfully.",
"ArtifactID":1016774,
"ArtifactGuids":null,
"__Location":"http://hostname.mycompany.corp/Relativity.REST/Workspace/1016766/Error/1016774"
}
],
"Message":"Creation succeeded.",
"ErroredResultCount":0,
"TotalResultCount":1
}