MyITProcess-0.1.json
|
{ "openapi": "3.0.1", "info": { "title": "Public API", "description": "myITprocess Public API v0.1 \n\n Retrieve API Key from myITprocess. Throttling limit = 50 requests per minute per IT Provider. \n\n <a rel='noopener noreferrer' target='_blank' href='https://helpdesk.kaseya.com/hc/en-gb/articles/4438175877521-myITprocess-API'>myITprocess API</a> \n\n <a href='mailto:support@myitprocess.com'>Contact Support</a>", "version": "0.1" }, "paths": { "/public-api/v1/clients": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getClients", "tags": [ "Clients" ], "summary": "Returns list of all clients (both active and inactive)", "responses": { "200": { "description": "List of all clients (both active and inactive)", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ClientsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/reviews": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getReviews", "tags": [ "Reviews" ], "summary": "Returns list of all active reviews", "responses": { "200": { "description": "List of all active reviews", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReviewsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/reviews/categories/overdue": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getCategoriesUpForReview", "tags": [ "Reviews" ], "summary": "Returns list of categories up for review", "responses": { "200": { "description": "List of categories up for review", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CategoriesResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/users": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getUsers", "tags": [ "Users" ], "summary": "Returns list of all active users", "responses": { "200": { "description": "List of all active users", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UsersResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/initiatives": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getInitiatives", "tags": [ "Initiatives" ], "summary": "Returns list of all initiatives", "responses": { "200": { "description": "List of all initiatives", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InitiativesResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/findings": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getFindings", "tags": [ "Findings" ], "summary": "Returns list of all findings", "responses": { "200": { "description": "List of all findings", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FindingsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/meetings": { "get": { "operationId": "getMeetings", "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "tags": [ "Meetings" ], "summary": "Returns list of all meetings", "responses": { "200": { "description": "List of all meetings", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MeetingsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/recommendations": { "get": { "parameters": [ { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "operationId": "getRecommendations", "tags": [ "Recommendations" ], "summary": "Returns list of all recommendations", "responses": { "200": { "description": "List of all recommendations", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RecommendationsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } }, "/public-api/v1/recommendations/{recommendationId}/configurations": { "get": { "operationId": "getRecommendationConfigurations", "tags": [ "Recommendations" ], "summary": "Returns list of recommendation's configurations", "parameters": [ { "in": "path", "name": "recommendationId", "schema": { "type": "integer" }, "required": true, "description": "Id of the recommendation" }, { "$ref": "#/components/parameters/queryFilters" }, { "$ref": "#/components/parameters/sortingRules" }, { "$ref": "#/components/parameters/paginationRule" } ], "responses": { "200": { "description": "List of recommendation's configurations", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConfigurationsResult" } } } }, "400": { "$ref": "#/components/responses/400" }, "401": { "$ref": "#/components/responses/401" }, "500": { "$ref": "#/components/responses/500" } } } } }, "components": { "responses": { "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "400": { "description": "Validation error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationErrors" } } } }, "500": { "description": "Internal Server Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "parameters": { "queryFilters": { "in": "query", "name": "queryFilters", "schema": { "$ref": "#/components/schemas/QueryFilters" }, "description": "The array of query filters applied to query" }, "sortingRules": { "in": "query", "name": "sortingRules", "schema": { "$ref": "#/components/schemas/SortingRules" }, "description": "The array of sorting rules applied to query" }, "paginationRule": { "in": "query", "name": "paginationRule", "schema": { "$ref": "#/components/schemas/PaginationRule" }, "description": "The pagination rule oblect applied to query" } }, "schemas": { "PaginationRule": { "type": "object", "description": "Pagination Rule. Use empty object to get all results", "properties": { "pageSize": { "type": "number", "nullable": false, "description": "Page size", "default": 100 }, "page": { "type": "number", "nullable": false, "description": "Page", "default": 1 } } }, "SortingRules": { "type": "array", "description": "List of sorting rules", "items": { "$ref": "#/components/schemas/SortingRule" } }, "SortingRule": { "type": "object", "description": "Sorting Rule", "properties": { "field": { "type": "string", "nullable": false, "description": "Sorting rule field. Can be selected from the list of endpoint response entity. To sort by complex field use 'field.fieldProperty' syntax. Sorting by arrays is not supported" }, "direction": { "type": "string", "nullable": false, "description": "Sorting rule direction. Can be 'asc' or 'desc'", "default": "asc" } } }, "QueryFilters": { "type": "array", "description": "List of query filters", "items": { "$ref": "#/components/schemas/QueryFilter" } }, "QueryFilter": { "type": "object", "description": "Query Filter", "properties": { "field": { "type": "string", "nullable": false, "description": "Query filter field. Can be selected from the list of endpoint response entity. To filter by complex field use 'field.fieldProperty' syntax. Filtering by arrays is not supported" }, "predicate": { "type": "string", "nullable": false, "description": "Query filter predicate. Possible values - 'equal', 'notEqual', 'greaterThan', 'lessThan', 'contains'. Available predicates depend on type of property" }, "condition": { "type": "string", "nullable": true, "description": "Query filter condition" }, "operator": { "type": "string", "nullable": true, "description": "Query filter operator. Possible values - 'or', 'and', null", "default": "and" } } }, "PaginationInfo": { "type": "object", "description": "Pagination info", "properties": { "page": { "type": "number", "nullable": false, "description": "Current page", "default": 1 }, "pageSize": { "type": "number", "nullable": false, "description": "Page size", "default": 100 }, "totalCount": { "type": "number", "nullable": false, "description": "Total count of resulting entities", "default": 1 } } }, "ClientsResult": { "description": "List of clients with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Clients" } } } ] }, "Clients": { "type": "array", "description": "List of clients", "items": { "$ref": "#/components/schemas/Client" } }, "ClientBase": { "type": "object", "description": "Client base", "properties": { "id": { "type": "string", "format": "uuid", "nullable": false, "description": "Client Id" }, "name": { "type": "string", "nullable": false, "description": "Client name" } } }, "Client": { "allOf": [ { "$ref": "#/components/schemas/ClientBase" }, { "type": "object", "description": "Client", "properties": { "createdDate": { "type": "string", "format": "date-time", "nullable": false, "description": "Created date" }, "isActive": { "type": "boolean", "nullable": false, "description": "Is active" }, "deactivatedDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Deactivated date" }, "lastReviewDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Last review date" }, "lastAssignedMemberActivityDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Last assigned member review activity date" }, "alignmentScore": { "type": "integer", "format": "int32", "nullable": true, "description": "Alignment score" } } } ] }, "CategoriesResult": { "description": "List of categories up for review with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Categories" } } } ] }, "Categories": { "type": "array", "description": "List of categories up for review", "items": { "$ref": "#/components/schemas/Category" } }, "Category": { "type": "object", "description": "Category up for revuew", "properties": { "client": { "$ref": "#/components/schemas/ClientBase", "nullable": true, "description": "Client" }, "id": { "type": "integer", "nullable": false, "description": "Category Id" }, "name": { "type": "string", "nullable": false, "description": "Category name" }, "fullName": { "type": "string", "nullable": false, "description": "Full category name" } } }, "UsersResult": { "description": "List of users with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Users" } } } ] }, "Users": { "type": "array", "description": "List of users", "items": { "$ref": "#/components/schemas/User" } }, "User": { "type": "object", "description": "User", "properties": { "id": { "type": "string", "format": "uuid", "nullable": false, "description": "User Id" }, "firstName": { "type": "string", "nullable": true, "description": "First name" }, "lastName": { "type": "string", "nullable": true, "description": "Last name" }, "roleName": { "type": "string", "nullable": false, "description": "Role name" }, "lastLoginDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Last login date" } } }, "ReviewsResult": { "description": "List of reviews with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Reviews" } } } ] }, "Reviews": { "type": "array", "description": "List of reviews", "items": { "$ref": "#/components/schemas/Review" } }, "ReviewBase": { "type": "object", "description": "Review base", "properties": { "id": { "type": "number", "nullable": false, "description": "Review Id" }, "name": { "type": "string", "nullable": true, "description": "Review name" } } }, "ReviewBaseNullable": { "type": "object", "description": "Review base", "properties": { "id": { "type": "number", "nullable": true, "description": "Review Id" }, "name": { "type": "string", "nullable": true, "description": "Review name" } } }, "Review": { "allOf": [ { "$ref": "#/components/schemas/ReviewBase" }, { "type": "object", "description": "Review", "properties": { "status": { "type": "string", "nullable": false, "description": "Review status", "enum": [ "New", "EngineerInProgress", "EngineerComplete", "VcioInProgress", "Complete" ] }, "assignedEngineer": { "$ref": "#/components/schemas/UserBase", "nullable": true, "description": "Assigned engineer" }, "assignedVCIO": { "$ref": "#/components/schemas/UserBase", "nullable": true, "description": "Assigned VCIO" }, "createdDate": { "type": "string", "format": "date-time", "nullable": false, "description": "Created date" }, "lastUpdatedDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Last updated date" }, "client": { "$ref": "#/components/schemas/ClientBase", "nullable": true, "description": "Client" }, "engineerDueDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Engineer Due date" }, "engineerCompleteDate": { "type": "string", "format": "date-time", "nullable": true, "description": "Engineer Complete date" }, "vcioDueDate": { "type": "string", "format": "date-time", "nullable": true, "description": "VCIO Due date" }, "vcioCompleteDate": { "type": "string", "format": "date-time", "nullable": true, "description": "VCIO Complete date" } } } ] }, "InitiativesResult": { "description": "List of initiatives with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Initiatives" } } } ] }, "Initiatives": { "type": "array", "description": "List of initiatives", "items": { "$ref": "#/components/schemas/Initiative" } }, "InitiativeBase": { "type": "object", "description": "Initiative base", "properties": { "id": { "type": "number", "nullable": false, "description": "Initiative Id" } } }, "Initiative": { "allOf": [ { "$ref": "#/components/schemas/InitiativeBase" }, { "type": "object", "description": "Initiative", "properties": { "client": { "$ref": "#/components/schemas/ClientBase", "nullable": true, "description": "Client" }, "title": { "type": "string", "nullable": false, "description": "Initiative title" }, "description": { "type": "string", "nullable": true, "description": "Initiative description" }, "isArchived": { "type": "boolean", "nullable": false, "description": "Is archived" }, "recommendationsIds": { "type": "array", "nullable": false, "description": "Initiative recommendations", "items": { "type": "number" } } } } ] }, "FindingsResult": { "description": "List of findings with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Findings" } } } ] }, "Question": { "type": "object", "description": "Question", "properties": { "label": { "type": "string", "nullable": true, "description": "Question label" }, "text": { "type": "string", "nullable": true, "description": "Question text" } } }, "Findings": { "type": "array", "description": "List of findings", "items": { "$ref": "#/components/schemas/Finding" } }, "Finding": { "type": "object", "description": "Finding", "properties": { "id": { "type": "number", "nullable": false, "description": "Finding Id" }, "question": { "$ref": "#/components/schemas/Question", "nullable": true, "description": "Question" }, "review": { "$ref": "#/components/schemas/ReviewBaseNullable", "nullable": true, "description": "Review" }, "vcioAnswerType": { "type": "string", "nullable": true, "description": "vCIO answer type" }, "isArchived": { "type": "boolean", "nullable": false, "description": "Is archived" }, "recommendationId": { "type": "number", "nullable": true, "description": "Recommendation Id" }, "findingType": { "type": "string", "nullable": false, "description": "Finding Type", "enum": [ "Legacy", "AssignedToRecommendation", "UnassignedReviewFinding" ] } } }, "UserBase": { "type": "object", "description": "User base", "properties": { "id": { "type": "string", "format": "uuid", "nullable": true, "description": "User id" }, "fullName": { "type": "string", "nullable": true, "description": "User full name" } } }, "MeetingsResult": { "description": "List of meetings with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Meetings" } } } ] }, "Meetings": { "type": "array", "description": "List of meetings", "items": { "$ref": "#/components/schemas/Meeting" } }, "Meeting": { "type": "object", "description": "Meeting", "properties": { "id": { "type": "integer", "format": "int32", "nullable": false, "description": "Meeting Id" }, "status": { "type": "string", "nullable": false, "description": "Meeting status", "enum": [ "Upcoming", "InProgress", "Past", "Cancelled" ] }, "title": { "type": "string", "nullable": true, "description": "Meeting title" }, "purpose": { "type": "string", "nullable": true, "description": "Meeting purpose" }, "startDate": { "type": "string", "format": "date-time", "nullable": false, "description": "Meeting start date" }, "endDate": { "type": "string", "format": "date-time", "nullable": false, "description": "Meeting end date" }, "location": { "type": "string", "nullable": true, "description": "Meeting location" }, "summaryDescription": { "type": "string", "nullable": true, "description": "Meeting summary description" }, "recommendationIds": { "type": "array", "description": "Meeting agenda", "items": { "type": "integer", "format": "int32", "nullable": false, "description": "Recommendation Id" } }, "client": { "$ref": "#/components/schemas/ClientBase", "nullable": true, "description": "Client" }, "createdBy": { "$ref": "#/components/schemas/UserBase", "nullable": true, "description": "Created by" } } }, "RecommendationsResult": { "description": "List of recommendations with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Recommendations" } } } ] }, "Recommendations": { "type": "array", "description": "List of recommendations", "items": { "$ref": "#/components/schemas/Recommendation" } }, "Recommendation": { "type": "object", "description": "Recommendation", "properties": { "id": { "type": "number", "nullable": false, "description": "Recommendation Id" }, "parentId": { "type": "number", "nullable": true, "description": "Parent Id of recommendation" }, "client": { "$ref": "#/components/schemas/ClientBase", "nullable": true, "description": "Client" }, "initiative": { "$ref": "#/components/schemas/InitiativeBase", "nullable": true, "description": "Initiative" }, "name": { "type": "string", "nullable": false, "description": "Recommendation name" }, "description": { "type": "string", "nullable": true, "description": "Recommendation description" }, "budget": { "type": "number", "nullable": true, "description": "Recommendation budget" }, "budgetMonth": { "type": "string", "nullable": false, "description": "Recommendation budget month" }, "hours": { "type": "number", "nullable": true, "description": "Recommendation hours" }, "type": { "type": "string", "nullable": false, "description": "Recommendation type", "enum": [ "Project", "TimeMaterial", "Maintenance", "Strategic", "BusinessGoal" ] }, "responsibleParty": { "type": "string", "nullable": true, "description": "Recommendation responsible party", "enum": [ "Us", "You", "ThirdParty" ] }, "status": { "type": "string", "nullable": true, "description": "Recommendation status", "enum": [ "NotDiscussed", "Accepted", "Rejected", "OnHold", "InProgress", "Completed" ] }, "priority": { "type": "string", "nullable": false, "description": "Recommendation priority", "enum": [ "NoPriority", "Low", "Medium", "High" ] }, "isArchived": { "type": "boolean", "nullable": false, "description": "Is archived" }, "recommendationFeedback": { "type": "array", "description": "List of recommendation's feedbacks", "items": { "$ref": "#/components/schemas/RecommendationFeedback" } }, "findingsIds": { "type": "array", "nullable": false, "description": "List of recommendation's findings IDs", "items": { "type": "number" } } } }, "RecommendationFeedback": { "type": "object", "description": "Recommendation feedback", "properties": { "id": { "type": "number", "nullable": false, "description": "Recommendation feedback Id" }, "description": { "type": "string", "nullable": false, "description": "Recommendation feedback description" }, "status": { "type": "string", "nullable": true, "description": "Recommendation feedback status", "enum": [ "NotDiscussed", "Accepted", "Rejected", "OnHold", "InProgress", "Completed" ] }, "modifiedBy": { "type": "string", "format": "uuid", "nullable": true, "description": "Modifed by id" }, "modifiedDate": { "type": "string", "format": "date-time", "nullable": false, "description": "Modified date" } } }, "ConfigurationsResult": { "description": "List of configurations with pagination info", "allOf": [ { "$ref": "#/components/schemas/PaginationInfo" }, { "type": "object", "properties": { "items": { "$ref": "#/components/schemas/Configurations" } } } ] }, "Configurations": { "type": "array", "description": "List of configurations", "items": { "$ref": "#/components/schemas/Configuration" } }, "Configuration": { "type": "object", "description": "ItGlue configuration", "properties": { "id": { "type": "number", "nullable": false, "description": "ItGlue configuration Id" }, "name": { "type": "string", "nullable": false, "description": "ItGlue configuration name" }, "status": { "type": "string", "nullable": true, "description": "ItGlue configuration status" }, "type": { "type": "string", "nullable": false, "description": "ItGlue configuration type" }, "location": { "type": "string", "nullable": true, "description": "ItGlue configuration location" }, "expirationDate": { "type": "string", "format": "date-time", "nullable": true, "description": "ItGlue configuration expiration date" } } }, "Error": { "type": "object", "description": "Error", "properties": { "message": { "type": "string", "nullable": false, "description": "Error message" } } }, "ValidationErrors": { "type": "array", "description": "List of validation errors", "items": { "$ref": "#/components/schemas/ValidationError" } }, "ValidationError": { "type": "object", "description": "Validation error", "properties": { "field": { "type": "string", "nullable": false, "description": "Validation error for field" } } } }, "securitySchemes": { "ApiKey": { "type": "apiKey", "in": "header", "name": "MITP-API-KEY" } } }, "security": [ { "ApiKey": [] } ], "externalDocs": { "description": "Find out more about Swagger", "url": "http://swagger.io" } } |