{ "openapi": "3.0.0", "info": { "version": "1.0.0", "title": "API for file QCs, signoffs, and case & project archiving", "description": "API for file QCs, signoffs, and case & project archiving" }, "servers": [ { "url": "/", "variables": { "protocol": { "enum": ["http", "https"], "default": "https" } } } ], "paths": { "/add-fileqcs": { "post": { "summary": "Batch create FileQC records", "description": "Adds FileQC records for the given items", "requestBody": { "description": "Array of FileQCs", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileQC-add" } } } } }, "responses": { "201": { "description": "Successfully created FileQCs" }, "400": { "description": "Failures during save caused no FileQCs to be created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } }, "/available": { "get": { "summary": "Get available projects and workflows", "description": "Lists all projects and workflow names in File Provenance Report", "responses": { "200": { "description": "Lists of projects and workflow names in File Provenance Report", "content": { "application/json": { "schema": { "type": "object", "properties": { "projects": { "description": "List of distinct projects in the File Provenance Report", "type": "array", "items": { "type": "string" } }, "workflows": { "description": "List of distinct workflow names in the File Provenance Report", "type": "array", "items": { "type": "string" } } } } } } } } } }, "/delete-fileqcs": { "post": { "summary": "Batch delete FileQC records", "description": "Deletes FileQC records for the given File IDs", "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "fileids": { "description": "List of file IDs for which the FileQCs should be deleted", "type": "array", "items": { "type": "string" } } } } } }, "required": true }, "responses": { "200": { "description": "Successfully deleted at least some FileQCs", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "array", "description": "Message containing the IDs of the FileQCs which were deleted", "items": { "type": "string" } }, "errors": { "type": "array", "description": "Message containing the IDs of the FileQCs which were not deleted", "items": { "type": "string" } } } } } } }, "400": { "description": "Failed to delete any FileQCs", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/fileqcs-only": { "get": { "summary": "Get a stream of all FileQCs", "description": "Returns an unordered stream of all FileQCs in the database", "responses": { "200": { "description": "A stream of all FileQCs", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FileQCs-only-response" } } } } } } } }, "/get-fileqcs": { "post": { "summary": "Get one or more FileQCs", "description": "Get FileQCs for the given filters", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "filters": { "description": "File QC filters", "type": "object", "$ref": "#/components/schemas/FileQC-get" } } } } } }, "responses": { "200": { "description": "A list of FileQCs", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FileQCs-response" } } } }, "404": { "description": "No files found for given filters", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/cases": { "get": { "summary": "Get all case archives", "description": "A streaming endpoint to get all case archive records", "parameters": [ { "in": "query", "name": "not", "required": false, "schema": { "type": "string" }, "description": "Optional parameter to filter by outstanding case archiving work. Permitted values are: 'copied-to-offsite-staging', 'sent-offsite', 'sent-to-vidarr-archival', 'unloaded'" } ], "responses": { "200": { "description": "Case archive records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Case-response" } } } } } } } }, "/case": { "post": { "summary": "Create a case archive record", "description": "Adds a case archive record with basic data", "parameters": [ { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Fields for creating a new case archive record", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-new" } } } }, "security": { "ApiKeyAuth": [] }, "responses": { "200": { "description": "Case archive record exists", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "201": { "description": "Case archive record created or updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "409": { "description": "Submitted parameters do not match parameters for existing case with the same caseIdentifier", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "400": { "description": "The sign-off content does not meet requirements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/case/{caseIdentifier}": { "get": { "summary": "Get a case archive record", "description": "This resource represents a case and archive record. Each case and archive record is identified by a string `caseIdentifier`", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } }, { "name": "includeVidarrMetadata", "in": "query", "description": "Whether or not to return the full Vidarr metadata for files sent offsite and files sent to vidarr-archival (true/false)", "required": false, "schema": { "type": "boolean" } } ], "responses": { "201": { "description": "Created case archive record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested resource was not found" } } } }, "/case/{caseIdentifier}/copied-to-offsite-staging": { "put": { "summary": "Case archive files moved to offsite staging directory", "description": "Indicate that this case archive's files have been moved to the offfsite staging directory", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "description": "Vidarr copy-out file and archiving batch ID", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CaseArchive-copied-to-offsite-staging-dir" } } } }, "responses": { "200": { "description": "Case archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/case/{caseIdentifier}/sent-offsite": { "put": { "summary": "Case archive files were sent offsite", "description": "Indicate that this case archive's files have been archived offsite", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "ID of Commvault backup job for sending the files offsite", "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "commvaultBackupJobId": { "type": "string" } } } } } }, "responses": { "200": { "description": "Case archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/case/{caseIdentifier}/sent-to-vidarr-archival": { "put": { "summary": "Case archive files loaded into vidarr-archival", "description": "Indicate that this case archive's files have been loaded into vidarr-archival", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Vidarr unload file containing metadata about the files to be loaded into vidarr-archival", "required": true, "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "description": "Case archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/case/{caseIdentifier}/unloaded": { "put": { "summary": "Case archive files deleted from production vidarr", "description": "Record that this case archive's files have been deleted from production vidarr", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Case archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/case/{caseIdentifier}/resume-archiving": { "post": { "summary": "Resume archiving for case", "description": "Resume archiving for a case that has been set to stop processing", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Case archive record is set to allow processing", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/case/{caseIdentifier}/stop-archiving": { "post": { "summary": "Stop archiving for case", "description": "Stop archiving for specified case (stopProcessing flag set to true). Does not undo anything already processed", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Case archive record is set to stopProcessing", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested case archive resource was not found" } } } }, "/projects": { "get": { "summary": "Get all project archives", "description": "A streaming endpoint to get all project archive records", "parameters": [ { "in": "query", "name": "not", "required": false, "schema": { "type": "string" }, "description": "Optional parameter to filter by outstanding project archiving work. Permitted values are: 'copied-to-offsite-staging', 'sent-offsite', 'sent-to-vidarr-archival', 'unloaded'" } ], "responses": { "200": { "description": "Project archive records", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Project-response" } } } } } } } }, "/project": { "post": { "summary": "Create a project archive record", "description": "Adds a project archive record with basic data", "parameters": [ { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Fields for creating a new project archive record", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-new" } } } }, "security": { "ApiKeyAuth": [] }, "responses": { "200": { "description": "Project archive record exists", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "201": { "description": "Project archive record created or updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "409": { "description": "Submitted parameters do not match parameters for existing project with the same projectIdentifier", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "400": { "description": "The sign-off content does not meet requirements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/project/{projectIdentifier}": { "get": { "summary": "Get a project archive record", "description": "This resource represents a project and archive record. Each project and archive record is identified by a string `projectIdentifier`", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } }, { "name": "includeVidarrMetadata", "in": "query", "description": "Whether or not to return the full Vidarr metadata for files sent offsite and files sent to vidarr-archival (true/false)", "required": false, "schema": { "type": "boolean" } } ], "responses": { "201": { "description": "Created project archive record", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "404": { "description": "The requested resource was not found" } } } }, "/project/{projectIdentifier}/copied-to-offsite-staging": { "put": { "summary": "Project archive files moved to offsite staging directory", "description": "Indicate that this project archive's files have been moved to the offfsite staging directory", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "required": true, "description": "Vidarr copy-out file and archiving batch ID", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectArchive-copied-to-offsite-staging-dir" } } } }, "responses": { "200": { "description": "Project archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/project/{projectIdentifier}/sent-offsite": { "put": { "summary": "Project archive files were sent offsite", "description": "Indicate that this project archive's files have been archived offsite", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "ID of Commvault backup job for sending the files offsite", "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "commvaultBackupJobId": { "type": "string" } } } } } }, "responses": { "200": { "description": "Project archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/project/{projectIdentifier}/sent-to-vidarr-archival": { "put": { "summary": "Project archive files loaded into vidarr-archival", "description": "Indicate that this project archive's files have been loaded into vidarr-archival", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Vidarr unload file containing metadata about the files to be loaded into vidarr-archival", "required": true, "content": { "application/json": { "schema": { "type": "object" } } } }, "responses": { "200": { "description": "Project archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/project/{projectIdentifier}/unloaded": { "put": { "summary": "Project archive files deleted from production vidarr", "description": "Record that this project archive's files have been deleted from production vidarr", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Project archive record was updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Project-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/project/{projectIdentifier}/resume-archiving": { "post": { "summary": "Resume archiving for project", "description": "Resume archiving for a project that has been set to stop processing", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Project archive record is set to allow processing", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/project/{projectIdentifier}/stop-archiving": { "post": { "summary": "Stop archiving for project", "description": "Stop archiving for specified project (stopProcessing flag set to true). Does not undo anything already processed", "parameters": [ { "name": "projectIdentifier", "in": "path", "description": "unique project identifier", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Project archive record is set to stop processing", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Case-response" } } } }, "404": { "description": "The requested project archive resource was not found" } } } }, "/token": { "post": { "summary": "Create a token", "description": "Adds a new API token", "parameters": [ { "name": "X-API-KEY", "in": "header", "required": false, "schema": { "type": "string" } } ], "requestBody": { "description": "username", "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "username": { "description": "Name of person generating token", "type": "string" } } } } } }, "security": { "ApiKeyAuth": [] }, "responses": { "201": { "description": "Token created", "content": { "application/json": { "schema": { "type": "object", "properties": { "X-API-KEY": { "description": "API token", "type": "string" } } } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "400": { "description": "The sign-off content does not meet requirements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/case/{caseIdentifier}/sign-off": { "post": { "summary": "Create a sign-off record", "description": "Adds a sign-off record with basic data", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } }, { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Fields for creating a new signoff record", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/signoff-new" } } } }, "security": { "ApiKeyAuth": [] }, "responses": { "201": { "description": "Sign-off record(s) created or updated", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/signoff-response" } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "400": { "description": "The sign-off content does not meet requirements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } }, "get": { "summary": "Get all sign-off records associated with a case", "description": "This resource represents a sign-off record. Each sign-off record is associated with a string `caseIdentifier`. A caseIdentifier may have multiple sign-off records", "parameters": [ { "name": "caseIdentifier", "in": "path", "description": "unique case identifier", "required": true, "schema": { "type": "string" } }, { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "security": { "ApiKeyAuth": [] }, "responses": { "200": { "description": "Retrieved sign-off record(s)", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/signoff-response" } } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } }, "/case/sign-off": { "post": { "summary": "Create one or more sign-off records", "description": "Adds a series of sign-off records with basic data", "parameters": [ { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "requestBody": { "description": "Fields for creating new signoff records", "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/signoffs-new" } } } }, "security": { "ApiKeyAuth": [] }, "responses": { "201": { "description": "Sign-off record(s) created or updated", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/signoff-response" } } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } }, "400": { "description": "The sign-off content does not meet requirements", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } }, "get": { "summary": "Get all sign-off records", "description": "Each resource represents a sign-off record. Each sign-off record is associated with a string `caseIdentifier`. A caseIdentifier may have multiple sign-off records", "parameters": [ { "name": "X-API-KEY", "in": "header", "required": true, "schema": { "type": "string" } } ], "security": { "ApiKeyAuth": [] }, "responses": { "200": { "description": "Retrieved sign-off record(s)", "content": { "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/signoff-response" } } } } }, "401": { "description": "The submission is missing a valid API token in header", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Errors" } } } } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "schema": { "type": "string" }, "in": "header", "name": "X-API-KEY", "description": "Requests should pass an api-key header" } }, "schemas": { "Errors": { "type": "object", "properties": { "errors": { "description": "List of errors", "type": "array", "items": { "type": "string" } } } }, "FileQC-get": { "type": "object", "properties": { "fileids": { "description": "Filter by File IDs", "type": "array", "items": { "type": "string" } }, "fileswids": { "description": "Filter by file SWIDs (deprecated)", "type": "string" }, "project": { "description": "Filter by Project short name", "type": "string" }, "qcstatus": { "description": "Filter by qc status (PASS, FAIL, PENDING)", "type": "string" }, "workflow": { "description": "Filter by workflow name. Must be used with `project` query", "type": "string" } } }, "FileQC-response": { "type": "object", "properties": { "alert": { "description": "Lists known issues for FileQCs", "type": "string" }, "comment": { "description": "URL-escaped reason why FileQC is PASS or FAIL (only returned if a FileQC record is found and a comment was provided)", "type": "string" }, "fileid": { "description": "File ID", "type": "string" }, "filepath": { "description": "File Path", "type": "string" }, "fileqcid": { "description": "Unique FileQC ID", "type": "integer" }, "fileswid": { "description": "File SWID", "type": "integer" }, "md5sum": { "description": "File md5sum", "type": "string" }, "project": { "description": "Project", "type": "string" }, "qcdate": { "description": "QC Date (only returned if a FileQC record is found)", "type": "string" }, "qcstatus": { "description": "FileQC status (PASS, FAIL, PENDING)", "type": "string" }, "skip": { "description": "Whether file is skipped in analysis (only returned if a File Provenance Reprot record is found)", "type": "boolean" }, "stalestatus": { "description": "Whether file has been superseded by a more recent analysis (OKAY, STALE, NOT IN PROVENANCE)", "type": "string" }, "upstream": { "description": "List of input File IDs (only returned if a File Provenance Report record is found)", "type": "array", "items": { "type": "string" } }, "username": { "description": "Name of person QCing the file (only returned if a FileQC record is found)", "type": "string" }, "workflow": { "description": "Workflow", "type": "string" } } }, "FileQCs-response": { "type": "object", "properties": { "fileqcs": { "type": "array", "items": { "$ref": "#/components/schemas/FileQC-response" } } } }, "FileQCs-only-response": { "type": "object", "properties": { "comment": { "description": "Further information about the QC status", "type": "string" }, "fileid": { "description": "File ID", "type": "string" }, "filepath": { "description": "File Path", "type": "string" }, "fileqcid": { "description": "Unique FileQC ID", "type": "integer" }, "fileswid": { "description": "File SWID", "type": "integer" }, "project": { "description": "Project name", "type": "string" }, "qcdate": { "description": "QC Date", "type": "string" }, "qcpassed": { "description": "Is FileQC PASS?", "type": "boolean" }, "workflow": { "description": "Workflow name", "type": "string" }, "username": { "description": "Name of person QCing the file", "type": "string" } } }, "FileQC-add": { "type": "object", "properties": { "fileqcs": { "type": "array", "items": { "type": "object", "properties": { "comment": { "description": "optional URL-escaped reason why FileQC is PASS or FAIL", "type": "string" }, "fileid": { "description": "File ID", "type": "string" }, "qcstatus": { "description": "PASS or FAIL or PENDING", "type": "string" }, "username": { "description": "Name of person QCing the file", "type": "string" } } } } } }, "Case-new": { "type": "object", "properties": { "caseIdentifier": { "description": "Case identifier", "type": "string" }, "requisitionId": { "description": "Requisition number", "type": "integer" }, "limsIds": { "description": "LIMS IDs associated with the case", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForOffsiteArchive": { "description": "Vidarr workflow run IDs whose files need to be archived offsite", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForVidarrArchival": { "description": "Vidarr workflow run IDs whose files need to be stored in vidarr-archival", "type": "array", "items": { "type": "string" } }, "metadata": { "description": "Metadata for the case archive", "type": "object" }, "archiveTarget": { "description": "Archive target information", "type": "string" }, "archiveWith": { "description": "List of case IDs that this case should be archived with", "type": "array", "items": { "type": "string" } } } }, "Case-response": { "type": "object", "properties": { "created": { "description": "Date that the case was created in Nabu", "type": "string", "format": "date-time" }, "modified": { "description": "Date that the case was last modified in Nabu", "type": "string", "format": "date-time" }, "caseIdentifier": { "description": "Unique case identifier", "type": "string" }, "entityType": { "description": "Should always be CASE", "type": "string" }, "requisitionId": { "description": "Requisition number", "type": "integer" }, "limsIds": { "description": "LIMS IDs associated with the case", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForOffsiteArchive": { "description": "Vidarr workflow run IDs whose files need to be archived offsite", "type": "array", "items": { "type": "string" } }, "filesCopiedToOffsiteArchiveStagingDir": { "description": "Date that the case was copied to the offsite archive staging directory", "type": "string", "format": "date-time" }, "commvaultBackupJobId": { "description": "Commvault identifier for the backup job for sending the case to offsite location", "type": "string" }, "workflowRunIdsForVidarrArchival": { "description": "Vidarr workflow run IDs whose files need to be stored in vidarr-archival", "type": "array", "items": { "type": "string" } }, "filesLoadedIntoVidarrArchival": { "description": "Date that the case was last modified in Nabu", "type": "string", "format": "date-time" }, "filesUnloaded": { "description": "Date that the case was last modified in Nabu", "type": "string", "format": "date-time" }, "metadata": { "description": "Metadata associated with the case archive", "type": "object" }, "archiveTarget": { "description": "Archive target information", "type": "string" }, "archiveWith": { "description": "List of case IDs that this case should be archived with", "type": "array", "items": { "type": "string" } }, "batchId": { "description": "Archive batch ID", "type": "string" }, "stopProcessing": { "description": "Whether the case archive is flagged to stop all processing", "type": "boolean" } }, "required": [ "created", "modified", "caseIdentifier", "requisitionId", "limsIds", "workflowRunIdsForOffsiteArchive", "filesCopiedToOffsiteArchiveStagingDir", "commvaultBackupJobId", "workflowRunIdsForVidarrArchival", "filesLoadedIntoVidarrArchival", "filesUnloaded", "archiveTarget", "archiveWith" ] }, "CaseArchive-copied-to-offsite-staging-dir": { "type": "object", "properties": { "batchId": { "description":"Archiving batch identifier", "type": "string" }, "copyOutFile": { "description": "Vidarr copy-out file containing metadata about the files to be sent offsite", "type": "object" } } }, "Project-new": { "type": "object", "properties": { "projectIdentifier": { "description": "Project identifier", "type": "string" }, "limsIds": { "description": "LIMS IDs associated with the project", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForOffsiteArchive": { "description": "Vidarr workflow run IDs whose files need to be archived offsite", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForVidarrArchival": { "description": "Vidarr workflow run IDs whose files need to be stored in vidarr-archival", "type": "array", "items": { "type": "string" } }, "metadata": { "description": "Metadata for the project archive", "type": "object" }, "archiveTarget": { "description": "Archive target information", "type": "string" }, "archiveWith": { "description": "List of project IDs that this project should be archived with", "type": "array", "items": { "type": "string" } } } }, "Project-response": { "type": "object", "properties": { "created": { "description": "Date that the project was created in Nabu", "type": "string", "format": "date-time" }, "modified": { "description": "Date that the project was last modified in Nabu", "type": "string", "format": "date-time" }, "projectIdentifier": { "description": "Unique project identifier", "type": "string" }, "entityType": { "description": "Should always be PROJECT", "type": "string" }, "requisitionId": { "description": "Requisition number", "type": "integer" }, "limsIds": { "description": "LIMS IDs associated with the project", "type": "array", "items": { "type": "string" } }, "workflowRunIdsForOffsiteArchive": { "description": "Vidarr workflow run IDs whose files need to be archived offsite", "type": "array", "items": { "type": "string" } }, "filesCopiedToOffsiteArchiveStagingDir": { "description": "Date that the project was copied to the offsite archive staging directory", "type": "string", "format": "date-time" }, "commvaultBackupJobId": { "description": "Commvault identifier for the backup job for sending the project to offsite location", "type": "string" }, "workflowRunIdsForVidarrArchival": { "description": "Vidarr workflow run IDs whose files need to be stored in vidarr-archival", "type": "array", "items": { "type": "string" } }, "filesLoadedIntoVidarrArchival": { "description": "Date that the project was last modified in Nabu", "type": "string", "format": "date-time" }, "filesUnloaded": { "description": "Date that the project was last modified in Nabu", "type": "string", "format": "date-time" }, "metadata": { "description": "Metadata associated with the project archive", "type": "object" }, "archiveTarget": { "description": "Archive target information", "type": "string" }, "archiveWith": { "description": "List of project IDs that this project should be archived with", "type": "array", "items": { "type": "string" } }, "batchId": { "description": "Archive batch ID", "type": "string" }, "stopProcessing": { "description": "Whether the project archive is flagged to stop all processing", "type": "boolean" } }, "required": [ "created", "modified", "rojectIdentifier", "requisitionId", "limsIds", "workflowRunIdsForOffsiteArchive", "filesCopiedToOffsiteArchiveStagingDir", "commvaultBackupJobId", "workflowRunIdsForVidarrArchival", "filesLoadedIntoVidarrArchival", "filesUnloaded", "archiveTarget", "archiveWith" ] }, "ProjectArchive-copied-to-offsite-staging-dir": { "type": "object", "properties": { "batchId": { "description":"Archiving batch identifier", "type": "string" }, "copyOutFile": { "description": "Vidarr copy-out file containing metadata about the files to be sent offsite", "type": "object" } } }, "signoff-new": { "type": "object", "properties": { "qcPassed": { "description": "Whether QC is passed (true/false)", "type": "boolean" }, "username": { "description": "Name of person signing-off", "type": "string" }, "signoffStepName": { "description": "The QC gate associated with this sign-off", "type": "string" }, "deliverableType": { "description": "The pipeline associated with this sign-off", "type": "string" }, "deliverable": { "description": "The deliverable associated with the release step (required where signoffStepName = RELEASE)", "type": "string" }, "comment": { "description": "Optional URL-escaped reason why sign-off is PASS or FAIL", "type": "string" }, "release": { "description": "Optional boolean for release status", "type": "boolean" } } }, "signoffs-new": { "type": "object", "properties": { "caseIdentifiers": { "description": "One or more unique case identifiers", "type": "array", "items": { "type": "string" } }, "qcPassed": { "description": "Whether QC is passed (true/false)", "type": "boolean" }, "username": { "description": "Name of person signing-off", "type": "string" }, "signoffStepName": { "description": "The QC gate associated with this sign-off", "type": "string" }, "deliverableType": { "description": "The pipeline associated with this sign-off", "type": "string" }, "deliverable": { "description": "The deliverable associated with the release step (required where signoffStepName = RELEASE)", "type": "string" }, "comment": { "description": "Optional URL-escaped reason why sign-off is PASS or FAIL", "type": "string" }, "release": { "description": "Optional boolean for release status", "type": "boolean" } } }, "signoff-response": { "type": "object", "properties": { "id": { "description": "Unique identifier for sign-off in Nabu", "type": "integer" }, "created": { "description": "Date that the case was created in Nabu", "type": "string", "format": "date-time" }, "caseIdentifier": { "description": "Unique case identifier", "type": "string" }, "qcPassed": { "description": "Whether QC is passed (true/false)", "type": "boolean" }, "username": { "description": "Name of person QCing the file (only returned if a sign-off record is found)", "type": "string" }, "signoffStepName": { "description": "The QC gate associated with this sign-off", "type": "string" }, "deliverableType": { "description": "The pipeline associated with this sign-off", "type": "string" }, "deliverable": { "description": "The deliverable associated with the release step (required where signoffStepName = RELEASE)", "type": "string" }, "comment": { "description": "URL-escaped reason why sign-off is PASS or FAIL (only returned if a sign-off record is found and a comment was provided)", "type": "string" }, "release": { "description": "Optional boolean for release status", "type": "boolean" } }, "required": [ "created", "caseIdentifier", "username", "signoffStepName", "deliverableType" ] } } } }