

Last date modified: April 15 2025
You can use object rules to further customize the behavior of the object types that you create. The Object Rule Manager service simplifies this process by supporting CRUD operations on object rules. It also provides helper methods for retrieving information about associative objects, layouts, choices and choice fields used when creating or updating an object rule.
You can also work with this service through .NET. For more information, see Object Rule Manager (.NET).
You can use the Postman sample files to become familiar with making calls to endpoints on the services. To download the sample files, click V1 Object Rule postman_collection.zip.
To get started with Postman, complete these steps:
Review the following guidelines for the Object Rule Manager service:
The URLs for REST endpoints contain path parameters that you need to set before making a call:
Create or update this object rule | Use these helper endpoints | Compares to this UI field |
---|---|---|
availablechoicefields | Field | |
availablelayouts | Action | |
availablechoicefields | Field | |
availablechoices | Value | |
availablelayouts | Action | |
availablechoicefields | Field | |
availablechoices | Value | |
availableassociatedobjects | Associative/Child Object |
You can create object rules by sending a POST request to the appropriate URL for the rule type. For general information about these object rules, see Adding an object rule.
Click the following drop-down links to view URLs and sample requests for sub-list visibility, choices, and layouts rules. You can find the URLs and JSON request formats for other object type rules in the Postman file provided for this service. For more information, see Postman sample files.
For the URLs in these examples, set the {WorkspaceID} variable to the Artifact ID of the workspace containing the object type, or use -1 to indicate the admin-level context.
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/choice-behavior
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/custom-single-object-add-link-visibility
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-layout
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-layout-on-new
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/global-button-visibility
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/mass-action-visibility
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/new-button-override
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/sub-list-button-visibility
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/override-edit-link
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/override-view-link
To create a sub-list visibility rule, send a POST request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/sub-list-button-visibility
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"objectRuleRequest":{
"Name": "Sample rule for sublist button",
"ObjectType": {
"ArtifactID": 1042378
},
"Field": {
"Value": {
"ArtifactID": 1042566
}
},
"Choice": {
"Value": {
"ArtifactID": 1042568
}
},
"SubListObject": {
"Value": {
"ArtifactID": 1042586
}
},
"ShowNew": true,
"ShowLink": false,
"ShowUnlink": false,
"RelativityApplications": []
}
}
To create a choice rule, send a POST request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/choice-behavior
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"objectRuleRequest":{
"Name": "Sample Rule One",
"ObjectType": {
"ArtifactID": 1042378
},
"AllowAdd": true,
"AllowDelete": true,
"AllowRename": true,
"Field": {
"Value": {
"ArtifactID": 1042565
}
},
"RelativityApplications": []
}
}
To create a layout rule, send a POST request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-layout
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
"objectRuleRequest":{
"Name": "Sample rule for layout",
"ObjectType": {
"ArtifactID": 1042378
},
"Field": {
"Value": {
"ArtifactID": 1042566
}
},
"Layout": {
"Value": {
"ArtifactID": 1042594
}
},
"Choice": {
"Value": {
"ArtifactID": 1042569
}
},
"AllowLayoutChange": false,
"RelativityApplications": []
}
}
When the request is successful, the response contains the Artifact ID of the new object rule. It also returns the status code of 200.
You can retrieve basic information about an object rule or extended information, which also includes operations that you have permissions to perform on the object rule.
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/{ObjectRuleId}
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/{ObjectRuleId}?includeMetadata=true&includeActions=true
For both requests, set the {WorkspaceID} variable to the Artifact ID of a workspace or use -1 to indicate the admin-level context. Set the {ObjectRuleId} variable to the Artifact ID of the object rule that you want to read, and leave the body of the request empty.
The ListType field contains one of the following values:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"Behavior": "SubListButtonVisibility",
"Field": {
"Secured": false,
"Value": {
"Name": "Custom Single Choice Field",
"ArtifactID": 1042566,
"Guids": []
}
},
"Choice": {
"Secured": false,
"Value": {
"Name": "Green",
"ArtifactID": 1042568,
"Guids": []
}
},
"SubListObject": {
"Secured": false,
"Value": {
"Name": "Associated object example",
"ArtifactTypeID": 1000051,
"ArtifactID": 1042586,
"Guids": [],
"ListType": "ChildObject"
}
},
"AllowAdd": false,
"AllowDelete": false,
"AllowRename": false,
"ShowDelete": false,
"ShowAddLink": false,
"AllowLayoutChange": false,
"ShowNew": true,
"ShowLink": false,
"ShowUnlink": false,
"ShowMassCopy": false,
"ShowMassEdit": false,
"ShowMassReplace": false,
"ShowMassTally": false,
"RelativityApplications": {
"HasSecuredItems": false,
"ViewableItems": []
},
"ObjectType": {
"Name": "Custom Object Type",
"ArtifactTypeID": 1000048,
"ArtifactID": 1042378,
"Guids": []
},
"Actions": [],
"LastModifiedOn": "2019-02-22T19:22:49.927",
"LastModifiedBy": {
"Name": "Doe, Jane",
"ArtifactID": 1023652,
"Guids": []
},
"CreatedOn": "2019-02-22T17:40:24.7",
"CreatedBy": {
"Name": "Doe, Jane",
"ArtifactID": 1023652,
"Guids": []
},
"Name": "Updated object rule",
"ArtifactID": 1042590,
"Guids": []
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"Behavior": "SubListButtonVisibility",
"Field": {
"Secured": false,
"Value": {
"Name": "Custom Single Choice Field",
"ArtifactID": 1042566,
"Guids": []
}
},
"Layout": {
"Secured": false,
"Value": {
"Name": "Custom Layout",
"ArtifactID": 1042594,
"Guids": []
}
},
"Choice": {
"Secured": false,
"Value": {
"Name": "Custom Choice",
"ArtifactID": 1042569,
"Guids": []
}
},
"SubListObject": {
"Secured": false,
"Value": {
"Name": "Associated object example",
"ArtifactTypeID": 1000051,
"ArtifactID": 1042586,
"Guids": [],
"ListType": "ChildObject"
}
},
"AllowAdd": false,
"AllowDelete": false,
"AllowRename": false,
"ShowDelete": false,
"ShowAddLink": false,
"AllowLayoutChange": false,
"ShowNew": false,
"ShowLink": false,
"ShowUnlink": false,
"ShowMassCopy": false,
"ShowMassEdit": false,
"ShowMassReplace": false,
"ShowMassTally": false,
"RelativityApplications": {
"HasSecuredItems": false,
"ViewableItems": []
},
"ObjectType": {
"Name": "Custom Object Type",
"ArtifactTypeID": 1000048,
"ArtifactID": 1042378,
"Guids": []
},
"Meta": {
"Unsupported": [],
"ReadOnly": [
"RuleType"
]
},
"Actions": [
{
"Name": "Delete",
"Href": "relativity-data-visualization/{versionNumber}/workspaces/2342954/object-rules/1042595",
"Verb": "DELETE",
"IsAvailable": true,
"Reason": []
},
{
"Name": "Update",
"Href": "relativity-data-visualization/{versionNumber}/workspaces/2342954/object-rules/Default-Layoutobjectrules/1042595",
"Verb": "PUT",
"IsAvailable": true,
"Reason": []
}
],
"LastModifiedOn": "2019-02-22T17:55:04.253",
"LastModifiedBy": {
"Name": "Doe, Jane",
"ArtifactID": 1023652,
"Guids": []
},
"CreatedOn": "2019-02-22T17:55:04.253",
"CreatedBy": {
"Name": "Doe, Jane",
"ArtifactID": 1023652,
"Guids": []
},
"Name": "Sample rule for layout",
"ArtifactID": 1042595,
"Guids": []
}
You can update object rules by sending a PUT request to the appropriate URL for the rule type. For general information about object rules, see Adding an object rule.
Click the following drop-down links to view URLs and sample requests for sub-list visibility, choices, and layouts rules. You can find the URLs and JSON request formats for other object type rules in the Postman file provided for this service. For more information, see Postman sample files.
For the URLs in these examples, set the {WorkspaceID} variable to the Artifact ID of the workspace containing the object type, or use -1 to indicate the admin-level context. Set the {ObjectRuleId} variable to the Artifact ID of the object type.
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/choice-behavior/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/custom-single-object-add-link-visibility/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-Layout/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-layout-on-new/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/global-button-visibility
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/mass-action-visibility/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/new-button-override/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/sub-list-button-visibility/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/override-edit-link/{ObjectRuleId}
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/override-view-link/{ObjectRuleId}
To update a sub-list visibility rule, send a PUT request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/sub-list-button-visibilityobjectrules/{ObjectRuleId}
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"objectRuleRequest":{
"Name": "Updated object rule",
"ObjectType": {
"ArtifactID": 1042378
},
"Field": {
"Value": {
"ArtifactID": 1042566
}
},
"Choice": {
"Value": {
"ArtifactID": 1042568
}
},
"SubListObject": {
"Value": {
"ArtifactID": 1042586
}
},
"ShowNew": true,
"ShowLink": false,
"ShowUnlink": false,
"RelativityApplications": []
},
"LastModifiedOn": "2019-02-22T19:33:57.89"
}
To update a choice rule, send a PUT request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/choice-behaviorobjectrules/{ObjectRuleId}
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"objectRuleRequest":{
"Name": "Update choice behavior",
"ObjectType": {
"ArtifactID": 1042378
},
"AllowAdd": true,
"AllowDelete": false,
"AllowRename": true,
"Field": {
"Value": {
"ArtifactID": 1042565
}
},
"RelativityApplications": []
},
"LastModifiedOn": "2019-02-22T19:33:57.89"
}
To update a layout rule, send a PUT request with a URL in the following format:
1
<host>/relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/default-Layoutobjectrules/{ObjectRuleId}
The body of the request must contain the following fields unless specifically identified as optional:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"objectRuleRequest":{
"Name": "Updated rule for default layout",
"ObjectType": {
"ArtifactID":1042378
},
"Field": {
"Value": {
"ArtifactID": 1042566
}
},
"Layout": {
"Value": {
"ArtifactID": 1042594
}
},
"Choice": {
"Value": {
"ArtifactID": 1042569
}
},
"AllowLayoutChange": false,
"RelativityApplications": []
},
"LastModifiedOn": "2019-02-22T19:33:57.89"
}
When an update request is successful, the response returns the status code of 200.
To remove an object rule, send a DELETE request with a URL in the following general format:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/objectrules/{ObjectRuleId}
The body of the request is empty. When the object rule is successfully deleted, the response returns the status code of 200.
You can remove multiple object rules on the same object type and across different object types by making a single call to the mass-delete endpoint. Send a POST request with a URL in the following general format:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/mass-delete
The body of the request must contains an array of object rules with the following fields:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"ObjectRules":[
{
"ArtifactID":1039509,
"GUID":[
]
},
{
"ArtifactID":1039525,
"GUID":[
]
},
{
"ArtifactID":1039630,
"GUID":[
]
}
]
}
When the object rules are successfully deleted, the response returns the status code of 200.
When you create or update an object rule, you must provide the Artifact ID of any associative objects, layouts, choices and choice fields that it references. The Object Rule Manager service provides several helper endpoints that you can use to retrieve the Artifact ID, name, and other information about these objects. For most objects, it includes endpoints for the following types of requests:
For more information, see Guidelines for the Object Rule Manager service.
Use the following endpoints to retrieve associated objects for a specific object type:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-associated-objects/{ObjectTypeArtifactId}
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-associated-objects
The body of the request contains the following fields:
1
2
3
4
5
6
{
"ObjectTypeID" : {
"ArtifactID": 1036417,
"Name": "Analytics Example"
}
}
The response for both the GET and POST request contains the following fields:
If no associated objects are available for the object type, this endpoint returns an empty array.
1
2
3
4
5
6
7
8
9
10
11
[
{
"Name": "Category Example",
"ArtifactTypeID": 1000017,
"ArtifactID": 1036424,
"Guids": [
"f611b0e4-6d92-4ff6-a247-46e87685bfc9"
],
ListType: "ChildObject"
}
]
Use the following endpoints to retrieve single choice fields for a specific object type:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-single-choice-fields/{ObjectTypeArtifactId}
Retrieve with Artifact ID or name - send a POST request with a URL in the following general format:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-single-choice-fields
The body of the request contains the following fields:
1
2
3
4
5
6
{
"ObjectTypeID" : {
"ArtifactID": 1042378,
"Name": "Custom Object Type"
}
}
The response for both the GET and POST request contains the following fields:
If no associated single choice fields are available for the object type, this endpoint returns an empty array.
1
2
3
4
5
6
7
8
9
10
11
12
[
{
"Name": "Custom Single Choice Field",
"ArtifactID": 1042566,
"Guids": []
},
{
"Name": "Single Choice Field",
"ArtifactID": 1042564,
"Guids": []
}
]
Use the following endpoints to retrieve single and multiple choice fields for a specific object type:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-choice-fields/{ObjectTypeArtifactId}
Retrieve with Artifact ID or name - send a POST request with a URL in the following general format:
1
<hostRelativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-choice-fields/
The body of the request contains the following fields:
1
2
3
4
5
6
{
"ObjectTypeID" : {
"ArtifactID": 1042378,
"Name": "Custom Object Type"
}
}
The response for both the GET and POST request contains the following fields:
If no choice fields are available for the object type, this endpoint returns an empty array.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
{
"Name": "Custom Single Choice Field",
"ArtifactID": 1042566,
"Guids": []
},
{
"Name": "Multiple Choice Field",
"ArtifactID": 1042565,
"Guids": []
},
{
"Name": "Single Choice Field",
"ArtifactID": 1042564,
"Guids": []
}
]
To retrieve a list of choices for an object type, send a GET request with a URL in the following general format:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-choices/{{FieldId}}
The response contains the following fields:
If no choice are available for the object type, this endpoint returns an empty array.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[
{
"Name": "Blue",
"ArtifactID": 1042569,
"Guids": []
},
{
"Name": "Green",
"ArtifactID": 1042568,
"Guids": []
},
{
"Name": "Orange",
"ArtifactID": 1042570,
"Guids": []
}
]
Use the following endpoints to retrieve layouts for a specific object type:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-layouts/{ObjectTypeArtifactId}
Retrieve with Artifact ID or name - send a POST request with a URL in the following general format:
1
<host>/Relativity.rest/api/relativity-data-visualization/{versionNumber}/workspaces/{WorkspaceID}/object-rules/available-layouts
The body of the request contains the following fields:
1
2
3
4
5
6
{
"ObjectTypeID" : {
"ArtifactID": 1042378,
"Name" : "Custom Object Type"
}
}
The response for both the GET and POST request contains the following fields:
If no layouts are available for the object type, this endpoint returns an empty array.
1
2
3
4
5
6
7
[
{
"Name": "Custom Object Type Layout",
"ArtifactID": 1042377,
"Guids": []
}
]
On this page
Why was this not helpful?
Check one that applies.
Thank you for your feedback.
Want to tell us more?
Great!
Additional Resources |
|||
DevHelp Community | GitHub | Release Notes | NuGet |