{
	"openapi": "3.0.4",
	"info": {
		"title": "collect-api",
		"version": "1"
	},
	"paths": {
		"/collect-services/v1/CollectAPI/{workspaceId}/collection": {
			"put": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Instance Header",
						"required": true,
						"schema": {
						"type": "string",
						"default": "-"
						}
					}
				],
				"requestBody": {
					"content": {
						"application/json-patch+json": {
							"schema": {
								"$ref": "#/components/schemas/CreateCollectionAPIModel"
							}
						},
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateCollectionAPIModel"
							}
						},
						"text/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateCollectionAPIModel"
							}
						},
						"application/*+json": {
							"schema": {
								"$ref": "#/components/schemas/CreateCollectionAPIModel"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					}
				}
			}
		},
		"/collect-services/v1/CollectAPI/{workspaceId}/collection/{collectionArtifactId}/start-target-generation": {
			"post": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Instance Header",
						"required": true,
						"schema": {
							"type": "string",
							"default": "-"
						}
					}
				],
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					}
				}
			}
		},
		"/collect-services/v1/CollectAPI/{workspaceArtifactId}/collection/{collectionArtifactId}/target-generation": {
			"get": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "collectionArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					}
				],
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/StringListActionResult"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					}
				}
			}
		},
		"/collect-services/v1/CollectAPI/{workspaceArtifactId}/collection/{collectionArtifactId}/start-collection": {
			"patch": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "collectionArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Instance Header",
						"required": true,
						"schema": {
							"type": "string",
							"default": "-"
						}
					}
				],
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/StartJobResultActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/StartJobResultActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/StartJobResultActionResult"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					}
				}
			}
		},
		"/collect-services/v1/CollectAPI/{workspaceArtifactId}/collection/{collectionArtifactId}": {
			"get": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "collectionArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					}
				],
				"responses": {
					"200": {
						"description": "OK",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/CollectionJobModelActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CollectionJobModelActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/CollectionJobModelActionResult"
								}
							}
						}
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					},
					"500": {
						"description": "Internal Server Error",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ActionResult"
								}
							}
						}
					}
				}
			}
		},
		"/collect-services/v1/CollectAPI/{workspaceId}/collection/{collectionArtifactId}/stop": {
			"patch": {
				"tags": [
					"CollectAPI"
				],
				"parameters": [
					{
						"name": "workspaceId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "collectionArtifactId",
						"in": "path",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Instance Header",
						"required": true,
						"schema": {
							"type": "string",
							"default": "-"
						}
					}
				],
				"responses": {
					"202": {
						"description": "Accepted"
					},
					"400": {
						"description": "Bad Request",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							}
						}
					},
					"401": {
						"description": "Unauthorized",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							}
						}
					},
					"404": {
						"description": "Not Found",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							}
						}
					},
					"409": {
						"description": "Conflict",
						"content": {
							"text/plain": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							},
							"text/json": {
								"schema": {
									"$ref": "#/components/schemas/ProblemDetails"
								}
							}
						}
					}
				}
			}
		},
		"/Relativity.Rest/api/Relativity.ObjectManager/v1/workspace/-1/object/queryslim": {
			"post": {
				"tags": [
					"ObjectManagerAPI"
				],
				"summary": "Query admin-level Collect artifacts (Workspaces, Matters)",
				"description": "Use this endpoint to retrieve Workspaces and Matters. Run with the Workspace object type to list all workspaces and their associated Matter Names. Then run with the Matter object type and a name condition to retrieve a specific Matter's ArtifactID. The workspace context -1 is required for these admin-level objects.",
				"parameters": [
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Required CSRF header. Set to any non-empty string.",
						"required": true,
						"schema": {
							"type": "string",
							"default": "-"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimRequest"
							},
							"examples": {
								"ListWorkspaces": {
									"summary": "Call 1 — List all Workspaces with associated Matter Name",
									"description": "Returns all workspaces the caller has access to. The ArtifactID feeds the workspaceId path parameter in all Collect API calls. Matter Name identifies the matter associated with each workspace.",
									"value": {
										"request": {
											"objectType": { "name": "Workspace" },
											"fields": [
												{ "name": "Name" },
												{ "name": "Matter Name" }
											]
										},
										"start": 1,
										"length": 100
									}
								},
								"ListMatters": {
									"summary": "Call 2 — Retrieve a specific Matter by name (use Matter Name from Call 1)",
									"description": "Filters Matters by name to return the ArtifactID for the matter associated with your workspace. Replace 'Your Matter Name Here' with the Matter Name value returned in Call 1. The ArtifactID feeds MatterArtifactId in the Create Collection request.",
									"value": {
										"request": {
											"objectType": { "name": "Matter" },
											"fields": [{ "name": "Name" }],
											"condition": "'Name' == 'Your Matter Name Here'"
										},
										"start": 1,
										"length": 10
									}
								}
							}
						}
					}
				},
			"responses": {
				"200": {
					"description": "OK",
					"content": {
						"text/plain": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						},
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						},
						"text/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						}
					}
				},
				"401": {
					"description": "Unauthorized — Bearer token is missing or expired. Re-run the token call to obtain a new token."
				},
				"403": {
					"description": "Forbidden — The caller does not have sufficient permissions."
				},
				"404": {
					"description": "Not Found — The object type name is incorrect for this context."
				},
				"429": {
					"description": "Too Many Requests — Rate limit exceeded. Check the RateLimit-Reset response header for the number of seconds to wait before retrying."
				}
			}
			}
		},
		"/Relativity.Rest/api/Relativity.ObjectManager/v1/workspace/{workspaceId}/object/queryslim": {
			"post": {
				"tags": [
					"ObjectManagerAPI"
				],
				"summary": "Query workspace-level Collect artifacts (Source Instances, Entities, Processing Profiles)",
				"description": "Use this endpoint to retrieve Source Instances, Entities, and Processing Profiles from a specific workspace. The workspaceId is the ArtifactID returned in Call 1. For Processing Profiles, use the ArtifactID of a workspace that has Processing installed. The X-CSRF-Header must be set.",
				"parameters": [
					{
						"name": "workspaceId",
						"in": "path",
						"description": "ArtifactID of the workspace to query. Retrieve this from Call 1 (List Workspaces). For Processing Profiles, use the ArtifactID of a workspace with Processing installed.",
						"required": true,
						"schema": {
							"type": "integer",
							"format": "int32"
						}
					},
					{
						"name": "x-csrf-header",
						"in": "header",
						"description": "Required CSRF header. Set to any non-empty string.",
						"required": true,
						"schema": {
							"type": "string",
							"default": "-"
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimRequest"
							},
							"examples": {
								"ListSourceInstances": {
									"summary": "Call 3 — List Source Instances pre-created in Collect Admin",
									"description": "Returns all Collect Source Instances configured in this workspace. The ArtifactID of each feeds the SourceInstances array in the Create Collection request. Returns TotalCount 0 if Collect is not installed in this workspace.",
									"value": {
										"request": {
											"objectType": { "guid": "503A479A-18E4-406B-9537-AA74523B5A0C" },
											"fields": [{ "name": "Name" }]
										},
										"start": 1,
										"length": 100
									}
								},
							"ListEntities": {
								"summary": "Call 4 — List Entities (custodians) eligible for targeting",
								"description": "Returns all Entities in this workspace eligible for data collection. The ArtifactID of each feeds the Entities array in the Create Collection request. Note: use 'Full Name' as the field name for Entities — using 'Name' returns empty values.",
									"value": {
										"request": {
											"objectType": { "guid": "D216472D-A1AA-4965-8B36-367D43D4E64C" },
											"fields": [{ "name": "Full Name" }]
										},
										"start": 1,
										"length": 100
									}
								},
								"ListProcessingProfiles": {
									"summary": "Call 5 — List Processing Profiles (run against a Processing Workspace)",
									"description": "Returns all Processing Profiles in the specified workspace. Use the ArtifactID of a workspace where Processing is installed. The Processing Profile ArtifactID feeds AutoProcessingProcessingProfileId in the Create Collection request.",
									"value": {
										"request": {
											"objectType": { "guid": "4be0a8e2-c236-4dac-b8df-e7944b84cee5" },
											"fields": [{ "name": "Name" }]
										},
										"start": 1,
										"length": 100
									}
								}
							}
						}
					}
				},
			"responses": {
				"200": {
					"description": "OK",
					"content": {
						"text/plain": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						},
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						},
						"text/json": {
							"schema": {
								"$ref": "#/components/schemas/QuerySlimResponse"
							}
						}
					}
				},
				"401": {
					"description": "Unauthorized — Bearer token is missing or expired. Re-run the token call to obtain a new token."
				},
				"403": {
					"description": "Forbidden — The caller does not have access to this workspace."
				},
				"404": {
					"description": "Not Found — The object type GUID was not found in this workspace. Confirm Collect is installed and the X-CSRF-Header is set."
				},
				"429": {
					"description": "Too Many Requests — Rate limit exceeded. Check the RateLimit-Reset response header for the number of seconds to wait before retrying."
				}
			}
			}
		}
	},
	"components": {
		"schemas": {
			"ActionResult": {
				"type": "object",
				"additionalProperties": false
			},
			"QuerySlimRequest": {
				"type": "object",
				"description": "Request body for the Relativity Object Manager queryslim endpoint.",
				"required": ["request", "start", "length"],
				"properties": {
					"request": {
						"type": "object",
						"required": ["objectType", "fields"],
						"properties": {
							"objectType": {
								"type": "object",
								"description": "Identifies the object type to query. Use 'name' for system objects (Workspace, Matter) or 'guid' for Collect RDOs (Source Instance, Entity, Processing Profile).",
								"properties": {
									"name": {
										"type": "string",
										"nullable": true,
										"description": "Display name of a system object type, e.g. 'Workspace' or 'Matter'."
									},
									"guid": {
										"type": "string",
										"nullable": true,
										"description": "Artifact type GUID for a Collect RDO. Use for Source Instances, Entities, and Processing Profiles."
									}
								}
							},
							"fields": {
								"type": "array",
								"description": "Fields to include in the response. Use [{ 'name': 'Name' }] for the display name, or [{ 'name': 'Full Name' }] for Entities.",
								"items": {
									"type": "object",
									"properties": {
										"name": {
											"type": "string"
										}
									}
								}
							},
							"condition": {
								"type": "string",
								"nullable": true,
								"description": "Optional filter condition using Relativity query syntax, e.g. \"'Name' == 'My Matter'\"."
							}
						}
					},
					"start": {
						"type": "integer",
						"format": "int32",
						"description": "1-based index of the first result to return. Use with 'length' for pagination.",
						"default": 1
					},
					"length": {
						"type": "integer",
						"format": "int32",
						"description": "Maximum number of results to return. Increase and paginate using 'start' for large environments.",
						"default": 100
					}
				},
				"additionalProperties": false
			},
			"QuerySlimResponse": {
				"type": "object",
				"description": "Response from the Relativity Object Manager queryslim endpoint.",
				"properties": {
					"TotalCount": {
						"type": "integer",
						"format": "int32",
						"description": "Total number of objects matching the query. If 0 and results are expected, verify object type and workspace permissions."
					},
					"Objects": {
						"type": "array",
						"description": "Array of result objects. Each object contains an ArtifactID and a Values array. Values are ordered to match the Fields array at the bottom of the response.",
						"items": {
							"$ref": "#/components/schemas/QuerySlimObject"
						}
					},
					"CurrentStartIndex": {
						"type": "integer",
						"format": "int32",
						"description": "The start index of this result page."
					},
					"ResultCount": {
						"type": "integer",
						"format": "int32",
						"description": "Number of objects returned in this response page."
					},
					"Fields": {
						"type": "array",
						"description": "Metadata for each field returned, in the same order as Values in each Object.",
						"items": {
							"type": "object"
						},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"QuerySlimObject": {
				"type": "object",
				"description": "A single result object returned by queryslim.",
				"properties": {
					"ArtifactID": {
						"type": "integer",
						"format": "int32",
						"description": "The unique Relativity identifier for this object. This is the value to supply in Collect API fields such as MatterArtifactId, SourceInstances, Entities, AutoProcessingWorkspaceId, and AutoProcessingProcessingProfileId."
					},
					"Values": {
						"type": "array",
						"description": "Field values in the same order as the Fields array. The display name (workspace name, matter name, entity full name, etc.) appears here.",
						"items": {},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"CreateCollectionAPIModel": {
				"type": "object",
				"properties": {
					"CollectionName": {
						"type": "string",
						"nullable": true
					},
					"MatterArtifactId": {
						"type": "integer",
						"format": "int32"
					},
					"ProcessingSourceLocation": {
						"type": "string",
						"nullable": true
					},
					"JobNumber": {
						"type": "string",
						"nullable": true
					},
					"ZipCollectedFiles": {
						"type": "boolean"
					},
					"ZipPassword": {
						"type": "string",
						"nullable": true
					},
					"AutoProcessing": {
						"type": "boolean"
					},
					"AutoProcessingWorkspaceId": {
						"type": "integer",
						"format": "int32"
					},
					"AutoProcessingProcessingProfileId": {
						"type": "integer",
						"format": "int32"
					},
					"SelectedDocumentNumberingPrefixOption": {
						"type": "string",
						"nullable": true
					},
					"NotificationEmail": {
						"type": "string",
						"nullable": true
					},
					"SendEmailNotification": {
						"type": "boolean"
					},
					"Description": {
						"type": "string",
						"nullable": true
					},
					"SourceInstances": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/SourceInstanceModel"
						},
						"nullable": true
					},
					"Entities": {
						"type": "array",
						"items": {
							"type": "integer",
							"format": "int32"
						},
						"nullable": true
					},
					"NoncustodialInstances": {
						"type": "array",
						"items": {
							"type": "integer",
							"format": "int32"
						},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"StringListActionResult": {
				"type": "object",
				"properties": {
					"Result": {
						"$ref": "#/components/schemas/ActionResult"
					},
					"Value": {
						"type": "array",
						"items": {
							"type": "string"
						},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"StartJobResultActionResult": {
				"type": "object",
				"properties": {
					"Result": {
						"$ref": "#/components/schemas/ActionResult"
					},
					"Value": {
						"$ref": "#/components/schemas/StartJobResult"
					}
				},
				"additionalProperties": false
			},
			"StartJobResult": {
				"type": "object",
				"properties": {
					"Success": {
						"type": "boolean"
					},
					"Message": {
						"type": "string",
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"ProblemDetails": {
				"type": "object",
				"properties": {
					"type": {
						"type": "string",
						"nullable": true
					},
					"title": {
						"type": "string",
						"nullable": true
					},
					"status": {
						"type": "integer",
						"format": "int32",
						"nullable": true
					},
					"detail": {
						"type": "string",
						"nullable": true
					},
					"instance": {
						"type": "string",
						"nullable": true
					}
				},
				"additionalProperties": {}
			},
			"CollectionJobModelActionResult": {
				"type": "object",
				"properties": {
					"Result": {
						"$ref": "#/components/schemas/ActionResult"
					},
					"Value": {
						"$ref": "#/components/schemas/CollectionJobModel"
					}
				},
				"additionalProperties": false
			},
			"SelectedCollectionDetailCustodiansModel": {
				"type": "object",
				"properties": {
					"Custodians": {
						"type": "array",
						"items": {
							"type": "integer",
							"format": "int32"
						},
						"nullable": true
					},
					"CollectionDetailId": {
						"type": "integer",
						"format": "int32"
					},
					"WorkspaceId": {
						"type": "integer",
						"format": "int32"
					}
				},
				"additionalProperties": false
			},
			"SourceInstanceModel": {
				"type": "object",
				"properties": {
					"ArtifactId": {
						"type": "integer",
						"format": "int32"
					},
					"Criteria": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/SelectedCollectionCriteriaModel"
						},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"SelectedCollectionCriteriaModel": {
				"type": "object",
				"properties": {
					"DataType": {
						"type": "string",
						"nullable": true
					},
					"FieldName": {
						"type": "string",
						"nullable": true
					},
					"Operator": {
						"type": "string",
						"nullable": true
					},
					"Value": {
						"type": "string",
						"nullable": true
					},
					"CriteriaDataType": {
						"$ref": "#/components/schemas/CriteriaDataType"
					}
				},
				"additionalProperties": false
			},
			"CriteriaDataType": {
				"enum": [
					0,
					1,
					2,
					3,
					4,
					5,
					6
				],
				"x-enumNames": [
					"Unknown",
					"String",
					"Integer",
					"Date",
					"Boolean",
					"Guid",
					"Decimal"
				],
				"type": "integer",
				"format": "int32"
			},
			"CollectionJobModel": {
				"type": "object",
				"properties": {
					"ArtifactId": {
						"type": "integer",
						"format": "int32"
					},
					"Name": {
						"type": "string",
						"nullable": true
					},
					"Status": {
						"type": "string",
						"nullable": true
					},
					"Targets": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/CollectionJobTargetModel"
						},
						"nullable": true
					}
				},
				"additionalProperties": false
			},
			"CollectionJobTargetModel": {
				"type": "object",
				"properties": {
					"ArtifactId": {
						"type": "integer",
						"format": "int32"
					},
					"Target": {
						"type": "string",
						"nullable": true
					},
					"SourceInstance": {
						"type": "string",
						"nullable": true
					},
					"Items": {
						"type": "integer",
						"format": "int32"
					},
					"Errors": {
						"type": "integer",
						"format": "int32"
					},
					"Size": {
						"type": "integer",
						"format": "int64"
					},
					"StatusMessage": {
						"type": "string",
						"nullable": true
					},
					"State": {
						"type": "string",
						"nullable": true
					}
				},
				"additionalProperties": false
			}
		},
		"securitySchemes": {
			"Bearer": {
				"type": "http",
				"description": "Relativity Identity Service (RIS) bearer token to authenticate: https://platform.relativity.com/RelativityOne/Content/REST_API/REST_API_authentication.htm#Bearertokenauthentication",
				"scheme": "bearer",
				"bearerFormat": "JWT"
			}
		}
	},
	"security": [
		{
			"Bearer": [
				"readAccess",
				"writeAccess"
			]
		}
	],
	"tags": [
		{
			"name": "CollectAPI"
		},
		{
			"name": "ObjectManagerAPI",
			"description": "Use the Relativity Object Manager to discover prerequisite artifact IDs before creating Collect collections. These calls are read-only and use the same Bearer token authentication as the Collect API."
		}
	]
}