{"openapi":"3.0.1","info":{"title":"TrendMiner Context API","description":"API to work with Context.","termsOfService":"urn:tos'","contact":{"name":"TrendMiner","url":"http://www.trendminer.com","email":"support@trendminer.com"},"license":{"name":"Commercial","url":"http://www.trendminer.com"},"version":"1.0.0"},"servers":[{"url":"https://tm-toggles-next.trendminer.net/context","description":"Generated server url"}],"security":[{"bearerAuth":[]},{"openIdConnect":[]}],"tags":[{"name":"PublicDownloadGenerator","description":"Public download generator"}],"paths":{"/workflow/{identifier}":{"get":{"tags":["Workflow"],"summary":"Gets specific","operationId":"getWorkflow","parameters":[{"name":"identifier","in":"path","description":"The identifier of the workflow to be fetched.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}}}},"put":{"tags":["Workflow"],"summary":"Update workflow","operationId":"updateWorkflow","parameters":[{"name":"identifier","in":"path","description":"The identifier of the workflow that will be updated.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated workflow model. <br/>Can only add new intermediate states to the workflow model and update the name. <br/>Deletion of states is not allowed. Start- and end-states can not be updated. <br/>Identifier can not be updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}}}},"delete":{"tags":["Workflow"],"summary":"Delete specific workflow.","operationId":"deleteWorkflow","parameters":[{"name":"identifier","in":"path","description":"The identifier of the work flow to delete.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/workflow/{identifier}/states":{"put":{"tags":["Workflow"],"summary":"Update workflow states","operationId":"updateWorkflowStates","parameters":[{"name":"identifier","in":"path","description":"The identifier of the workflow that will be updated.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated workflow states model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStatesModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStates"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/WorkflowStates"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowStates"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/WorkflowStates"}}}}}}},"/type/{typeId}/triggers/{identifier}":{"get":{"tags":["Triggers"],"summary":"Get specific","operationId":"getTrigger","parameters":[{"name":"typeId","in":"path","description":"The identifier of the context data type the trigger is attached to.","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the trigger to be fetched.","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}}}},"put":{"tags":["Triggers"],"summary":"Update specific","operationId":"updateTrigger","parameters":[{"name":"typeId","in":"path","description":"The identifier of the context data type the trigger is attached to.","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the trigger to update","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated trigger model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinitionModel"}}},"required":true},"responses":{"204":{"description":"No content","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}},"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}}}},"delete":{"tags":["Triggers"],"summary":"Delete specific","operationId":"deleteTrigger","parameters":[{"name":"typeId","in":"path","description":"The identifier of the context data type the trigger is attached to.","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the trigger to delete","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/type/{typeId}/accessrule/{accessRuleId}":{"get":{"tags":["Access Rules"],"summary":"Get specific","operationId":"getAccessRule","parameters":[{"name":"typeId","in":"path","description":"The identifier of the ContextItem type.","required":true,"schema":{"type":"string"}},{"name":"accessRuleId","in":"path","description":"The identifier of the access rule.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}}}},"put":{"tags":["Access Rules"],"summary":"Update specific","operationId":"updateAccessRule","parameters":[{"name":"typeId","in":"path","description":"The identifier of the ContextItem type.","required":true,"schema":{"type":"string"}},{"name":"accessRuleId","in":"path","description":"The identifier of the access rule.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The access rule model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeAccessRuleModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}}}},"delete":{"tags":["Access Rules"],"summary":"Delete specific","operationId":"deleteAccessRule","parameters":[{"name":"typeId","in":"path","description":"The identifier of the ContextItem type.","required":true,"schema":{"type":"string"}},{"name":"accessRuleId","in":"path","description":"The identifier of the access rule.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"The resource was not found"},"401":{"description":"Unauthorized"}}}},"/type/{identifier}":{"get":{"tags":["Type"],"summary":"Get specific","operationId":"getContextDataType","parameters":[{"name":"identifier","in":"path","description":"The identifier of the type to be fetched","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}}}},"put":{"tags":["Type"],"summary":"Update specific","operationId":"updateContextDataType","parameters":[{"name":"identifier","in":"path","description":"The identifier of the type that will be updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated context date type model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataTypeModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}}}},"delete":{"tags":["Type"],"summary":"Delete specific context data type.","operationId":"deleteContextDataType","parameters":[{"name":"identifier","in":"path","description":"The identifier of the type to delete","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/source/{sourceIdentifier}":{"get":{"tags":["Source"],"summary":"Get specific source","operationId":"getSource","parameters":[{"name":"sourceIdentifier","in":"path","description":"The identifier of the source to be synced","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Source"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Source"}}}}}},"put":{"tags":["Source"],"summary":"Update specific source","operationId":"updateSource","parameters":[{"name":"sourceIdentifier","in":"path","description":"The identifier of the source to be updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Model containing the source. Only enabled flag can be changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Source"}}}},"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Source"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Source"}}}}}}},"/source/sync/background/{syncJobIdentifier}":{"get":{"tags":["Source Synchronization in background"],"summary":"Get background sync job","operationId":"getBackgroundSync","parameters":[{"name":"syncJobIdentifier","in":"path","description":"The identifier of the sync job","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}}}},"put":{"tags":["Source Synchronization in background"],"summary":"Update background sync job status","operationId":"updateBackgroundSyncStatus","parameters":[{"name":"syncJobIdentifier","in":"path","description":"The identifier of the sync job","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Model containing the new status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobStatusModel"}}},"required":true},"responses":{"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}}}},"delete":{"tags":["Source Synchronization in background"],"summary":"Cancel historical background sync job","operationId":"cancelBackgroundSync","parameters":[{"name":"syncJobIdentifier","in":"path","description":"The identifier of the sync job","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}}}}}}},"/item/{contextDataId}":{"get":{"tags":["Context item"],"summary":"Get specific","operationId":"getContextItem","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context item to be fetched.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}}}},"put":{"tags":["Context item"],"summary":"Update specific","operationId":"updateContextItem","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context item that will be updated","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"requestBody":{"description":"The updated context item model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}}}},"delete":{"tags":["Context item"],"summary":"Delete specific","operationId":"deleteContextItem","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context item to delete","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/fields/{identifier}":{"get":{"tags":["Fields"],"summary":"Get specific","operationId":"getField","parameters":[{"name":"identifier","in":"path","description":"The identifier of the custom field to be fetched.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}}}},"put":{"tags":["Fields"],"summary":"Update specific","operationId":"updateField","parameters":[{"name":"identifier","in":"path","description":"The identifier of the custom field that will be updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated custom field model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}}}},"delete":{"tags":["Fields"],"summary":"Delete specific","operationId":"deleteField","parameters":[{"name":"identifier","in":"path","description":"The identifier of the custom field to delete","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/data/{contextDataId}":{"get":{"tags":["Context data"],"summary":"Get a specific context data","operationId":"getContextData","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to be fetched.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}}}},"put":{"tags":["Context data"],"summary":"Update specific context data","operationId":"updateContextData","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to be updated.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"requestBody":{"description":"The context data model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}}}},"delete":{"tags":["Context data"],"summary":"Delete specific context data","operationId":"deleteContextData","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to be deleted.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/data/{contextDataId}/reference/{referenceId}":{"get":{"tags":["Context data reference"],"summary":"Get specific","operationId":"getDataReference","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the reference to be fetched.","required":true,"schema":{"type":"string"}},{"name":"referenceId","in":"path","description":"The identifier of the data reference to be fetched.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}}}},"put":{"tags":["Context data reference"],"summary":"Update specific","operationId":"updateDataReference","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the reference to be updated.","required":true,"schema":{"type":"string"}},{"name":"referenceId","in":"path","description":"The identifier of the data reference that will be updated.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReferenceModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}}}},"delete":{"tags":["Context data reference"],"summary":"Delete specific","operationId":"deleteDataReference","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the reference to be deleted.","required":true,"schema":{"type":"string"}},{"name":"referenceId","in":"path","description":"The identifier of the data reference to be deleted.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/data/{contextDataId}/event/{eventId}":{"get":{"tags":["Context data event"],"summary":"Get specific","operationId":"getContextDataEvent","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the event to be fetched.","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","description":"The identifier of the event to be fetched","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}}}},"put":{"tags":["Context data event"],"summary":"Update specific","operationId":"updateContextDataEvent","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the event to be updated.","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","description":"The identifier of the event that will be updated","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated event model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEventModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}}}},"delete":{"tags":["Context data event"],"summary":"Delete specific","operationId":"deleteContextDataEvent","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data linked to the event to be deleted.","required":true,"schema":{"type":"string"}},{"name":"eventId","in":"path","description":"The identifier of the event to delete","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/data/{contextDataId}/comments/{identifier}":{"get":{"tags":["Comments"],"summary":"Get specific comment ","operationId":"getComment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data the comment belongs to","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the comment to be fetched.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}}}},"put":{"tags":["Comments"],"summary":"Update specific","operationId":"updateComment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data the comment belongs to","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the comment to be updated.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The updated comment model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}}}},"delete":{"tags":["Comments"],"summary":"Delete specific","operationId":"deleteComment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data the comment belongs to","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the comment to be deleted.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/data/{contextDataId}/attachments/{identifier}":{"get":{"tags":["Attachments"],"summary":"Get specific","operationId":"getAttachment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the attachment is created.","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the attachment.","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}}}},"put":{"tags":["Attachments"],"summary":"Update specific","operationId":"updateAttachment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data the attachment belongs to","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the attachment to be updated.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The attachment model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Attachment"}}}}}},"delete":{"tags":["Attachments"],"summary":"Delete specific","operationId":"deleteAttachment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data the attachment belongs to","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the attachment to be deleted.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/asset-type":{"put":{"tags":["Asset type"],"summary":"Update entire collection of types for assets","operationId":"updateAssetType","requestBody":{"description":"The model containing the type collection to set for given assets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeModel"}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}},"post":{"tags":["Asset type"],"summary":"Get types for assets","operationId":"getAssetTypes","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AssetType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AssetType"}}}}}},"delete":{"tags":["Asset type"],"summary":"Delete types from collection for assets","operationId":"deleteAssetType","requestBody":{"description":"The model containing the types to delete from given assets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeModel"}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}},"patch":{"tags":["Asset type"],"summary":"Add types to collection for assets","operationId":"createAssetType","requestBody":{"description":"The model containing the types to add to given assets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTypeModel"}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"204":{"description":"No Content","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/workflow":{"get":{"tags":["Workflow"],"summary":"Get all workflows","operationId":"getAllWorkflows","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}}}}}},"post":{"tags":["Workflow"],"summary":"Create new","operationId":"createWorkflow","requestBody":{"description":"The workflow model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Workflow"}}}}}}},"/v2/item/search":{"post":{"tags":["Context item V2"],"summary":"Search context items V2","operationId":"searchContextItemV2","parameters":[{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","schema":{"type":"boolean"}}],"requestBody":{"description":"Model containing the filter objects and paging information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountIndependentSearchRequestModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenizedPageModelContextItem"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenizedPageModelContextItem"}}}}}}},"/v2/item/search/count":{"post":{"tags":["Context item V2"],"summary":"Returns the number of items matching the provided filters.","operationId":"count","requestBody":{"description":"Model containing the filters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CountRepresentationModel"}}}}}}},"/type":{"get":{"tags":["Type"],"summary":"Get all context data types","operationId":"getAllContextDataTypes","parameters":[{"name":"assetId","in":"query","description":"When provided, only types allowed for this asset are returned.","required":false,"schema":{"type":"string"}},{"name":"hasPermission","in":"query","description":"Type permissions the user needs to have. Possible values: CONTEXT_TYPE_WRITE or CONTEXT_TYPE_DELETE. When CONTEXT_TYPE_DELETE is provided, CONTEXT_TYPE_WRITE is automatically assumed.","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}}}},"post":{"tags":["Type"],"summary":"Create new","operationId":"createContextDataType","requestBody":{"description":"The context date type model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataTypeModel"}}},"required":true},"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextDataType"}}}}}}},"/type/{typeId}/triggers":{"get":{"tags":["Triggers"],"summary":"Get all for type","operationId":"getAllTriggers","parameters":[{"name":"typeId","in":"path","description":"The identifier of the context data type the trigger is attached to.","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTriggerDefinition"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelTriggerDefinition"}}}}}},"post":{"tags":["Triggers"],"summary":"Create new","operationId":"createTrigger","parameters":[{"name":"typeId","in":"path","description":"The identifier of the context data type for which the trigger is created.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The trigger model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinitionModel"}}},"required":true},"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TriggerDefinition"}}}}}}},"/type/{typeId}/accessrule":{"get":{"tags":["Access Rules"],"summary":"Get all for type","operationId":"getAllAccessRules","parameters":[{"name":"typeId","in":"path","description":"The identifier of the ContextItem type.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccessRule"}}}}}}},"post":{"tags":["Access Rules"],"summary":"Create new","operationId":"createAccessRule","parameters":[{"name":"typeId","in":"path","description":"The identifier of the ContextItem type.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The access rule model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TypeAccessRuleModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"The resource was not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRule"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/AccessRule"}}}}}}},"/type/search":{"get":{"tags":["Type"],"summary":"Search context data types.","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchContextDataType","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"hasPermission","in":"query","description":"Type permissions the user needs to have. Possible values: CONTEXT_TYPE_WRITE or CONTEXT_TYPE_DELETE. When CONTEXT_TYPE_DELETE is provided, CONTEXT_TYPE_WRITE is automatically assumed.","required":false,"schema":{"type":"string"}},{"name":"includeDeleted","in":"query","description":"Whether to include deleted types or not.","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}}}},"post":{"tags":["Type"],"summary":"Search context data types using a POST request.","operationId":"searchContextDataTypeUsingPost","requestBody":{"description":"Search request model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchParametersModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextDataType"}}}}}}},"/source/{sourceIdentifier}/sync":{"post":{"tags":["Source"],"summary":"Start historical sync","operationId":"syncSource","parameters":[{"name":"sourceIdentifier","in":"path","description":"The identifier of the source to be synced","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Model containing the interval.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceSynchronizationIntervalModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"202":{"description":"Accepted"},"401":{"description":"Unauthorized"}}}},"/source/sync":{"post":{"tags":["Source Synchronization"],"summary":"Re-sync list of context items","operationId":"syncContextItemsByIdentifiers","requestBody":{"description":"Model containing the list of context item identifiers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResyncByIdentifiersModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"202":{"description":"Accepted"},"401":{"description":"Unauthorized"}}}},"/source/sync/{contextItemIdentifier}":{"post":{"tags":["Source Synchronization"],"summary":"Re-sync specific context item","operationId":"syncContextItem","parameters":[{"name":"contextItemIdentifier","in":"path","description":"The identifier of the context item to be re-synced","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}},"204":{"description":"No Content","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}},"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}}}}},"/source/sync/filters":{"post":{"tags":["Source Synchronization"],"summary":"Re-sync list of context items","operationId":"syncContextItemsByFilters","requestBody":{"description":"Model containing the list of filters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResyncByFiltersModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"202":{"description":"Accepted"},"401":{"description":"Unauthorized"}}}},"/source/sync/failed/{failedItemId}":{"post":{"tags":["Failed Event Frame Synchronization"],"summary":"Re-sync one specific contextItem","operationId":"reSyncOneItem","parameters":[{"name":"failedItemId","in":"path","description":"The identifier of the context item to be re-synced","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"ok"},"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized"}}}},"/source/sync/cleanup":{"post":{"tags":["Source Synchronization"],"summary":"Do a manual cleanup of one datasource","operationId":"manualCleanup","parameters":[{"name":"datasourceId","in":"query","description":"The identifier of the datasource","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"202":{"description":"Accepted"},"401":{"description":"Unauthorized"}}}},"/migration/property-key/status":{"get":{"tags":["Property key migration"],"summary":"Get migration status","operationId":"getPropertyKeyMigrationStatus","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyKeyMigrationStatusRepresentationModel"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PropertyKeyMigrationStatusRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyKeyMigrationStatusRepresentationModel"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PropertyKeyMigrationStatusRepresentationModel"}}}}}},"post":{"tags":["Property key migration"],"summary":"Update phase status","description":"Only waitingForApproval is allowed with status RUNNING or FINISHED","operationId":"updatePhaseStatus","requestBody":{"description":"Object holding the status for the waitingForApproval phase","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyKeyMigrationPhaseStatusModel"}}},"required":true},"responses":{"204":{"description":"No content","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/keywords":{"get":{"tags":["Keywords"],"summary":"Get all","operationId":"getAllKeywords","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}}}}}},"post":{"tags":["Keywords"],"summary":"Validate a list of keywords","operationId":"validateKeywords","requestBody":{"description":"A collection of keyword models.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KeywordModel"}}}},"required":true},"responses":{"204":{"description":"No content","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}}},"application/hal+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}}}}}}}},"/item":{"post":{"tags":["Context item"],"summary":"Create new","operationId":"createContextItem","parameters":[{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"requestBody":{"description":"The context item model","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItemModel"}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextItem"}}}}}}},"/item/search":{"post":{"tags":["Context item"],"summary":"Search context items","operationId":"searchContextItem","parameters":[{"name":"useTimeSeriesIdentifier","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"description":"Model containing the filter objects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItem"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItem"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextItem"}}}}}}},"/item/minimalSearch":{"post":{"tags":["Context item"],"summary":"Minimal search (streaming)","operationId":"searchMinimalContextItem","parameters":[{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"description":"Model containing the filter objects.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactiveSearchRequestModel"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ReactiveSearchRequestModel"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/stream+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized"},"200":{"description":"OK","content":{"application/stream+json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MinimalContextItem"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MinimalContextItem"}}}}}}}},"/item/batch":{"post":{"tags":["Context item"],"summary":"Create new in batch","operationId":"createContextItemBatch","parameters":[{"name":"async","in":"query","description":"Indicates if the create in bulk should run async","required":false,"schema":{"type":"boolean"}}],"requestBody":{"description":"Array of context item models to create in batch.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemModel"}}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}},"delete":{"tags":["Context item"],"summary":"Delete bulk by identifiers","operationId":"deleteContextItemsByIdentifier","requestBody":{"description":"Model containing list of identifiers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteByIdentifiersModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/BulkDeleteResult"}}}}}}},"/import":{"get":{"tags":["data-import-controller"],"summary":"List all imported files.","operationId":"find","parameters":[{"name":"pageable","in":"query","required":true,"schema":{"$ref":"#/components/schemas/Pageable"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageDataImport"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageDataImport"}}}}}},"post":{"tags":["data-import-controller"],"summary":"Upload a file.","operationId":"upload","parameters":[],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataImport"}}}}}}},"/fields":{"get":{"tags":["Fields"],"summary":"Get all","operationId":"getAllFields","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}}}}}},"post":{"tags":["Fields"],"summary":"Create new","operationId":"createField","requestBody":{"description":"The custom field model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldModel"}}},"required":true},"responses":{"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Field"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Field"}}}}}}},"/fields/linked":{"post":{"tags":["Fields"],"summary":"Retrieve a list of fields linked to provided types.","operationId":"listFieldsForTypes","parameters":[{"name":"fieldTypes","in":"query","description":"Allowed field types","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"List of type identifiers.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionModelLinkedField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelLinkedField"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionModelLinkedField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/CollectionModelLinkedField"}}}}}}},"/export":{"get":{"tags":["Export"],"summary":"Get all","operationId":"getAllExports","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelExport"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelExport"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelExport"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelExport"}}}}}},"post":{"tags":["Export"],"summary":"Create new","operationId":"createExport","requestBody":{"description":"The export creation model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportModel"}}},"required":true},"responses":{"202":{"description":"Accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSubmissionResult"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TaskSubmissionResult"}}}},"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"View not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSubmissionResult"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/TaskSubmissionResult"}}}}}}},"/download/generate":{"post":{"tags":["PublicDownloadGenerator"],"summary":"Generate","operationId":"generate","requestBody":{"description":"The model containing the requested link","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkModel"}}},"required":true},"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataModel"}}}}}}},"/data":{"get":{"tags":["Context data"],"summary":"Get all context data","operationId":"getAllContextData","parameters":[{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}}}}}},"post":{"tags":["Context data"],"summary":"Create new context data","operationId":"createContextData","requestBody":{"description":"The context data model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextDataModel"}}},"required":true},"responses":{"404":{"description":"The resource was not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextData"}}}}}}},"/data/{contextItemId}/approval":{"get":{"tags":["Approvals"],"summary":"Get all for item","operationId":"getApprovalsHAL_1","parameters":[{"name":"contextItemId","in":"path","description":"The identifier of the ContextItem.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Approval"}}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"No rights on this context item","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Approval"}}}}},"404":{"description":"EntityModel(s) not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Approval"}}}}}}},"post":{"tags":["Approvals"],"summary":"Add approval","operationId":"approveContextItem","parameters":[{"name":"contextItemId","in":"path","description":"The identifier of the ContextItem.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"No rights on this context item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Approval"}}}},"201":{"description":"Approved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Approval"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Approval"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Approval"}}}}}},"delete":{"tags":["Approvals"],"summary":"Revoke approval","operationId":"revokeApproval","parameters":[{"name":"contextItemId","in":"path","description":"The identifier of the ContextItem.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"204":{"description":"Revoked"},"403":{"description":"No rights on this context item"},"401":{"description":"Unauthorized"}}}},"/data/{contextDataId}/reference":{"get":{"tags":["Context data reference"],"summary":"Get all for context data references for a specific context data","operationId":"getAllDataReferences","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to fetch all the data references from.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelDataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelDataReference"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelDataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelDataReference"}}}}}},"post":{"tags":["Context data reference"],"summary":"Add a new context data reference to a context data","operationId":"createDataReference","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the data reference is created.","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReferenceModel"}}},"required":true},"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataReference"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/DataReference"}}}}}}},"/data/{contextDataId}/event":{"get":{"tags":["Context data event"],"summary":"Get all for item","operationId":"getAllContextDataEvents","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to fetch all events from.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextEvent"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextEvent"}}}}}},"post":{"tags":["Context data event"],"summary":"Create new","operationId":"createContextDataEvent","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the event is created.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The event model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEventModel"}}},"required":true},"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextEvent"}}}}}}},"/data/{contextDataId}/comments":{"get":{"tags":["Comments"],"summary":"Get all comments for context item","operationId":"getAllComments","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to fetch all comments from.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelComment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelComment"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelComment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelComment"}}}}}},"post":{"tags":["Comments"],"summary":"Create new coment on a context item","operationId":"createComment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the comment is created.","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The comment model.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentModel"}}},"required":true},"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/Comment"}}}}}}},"/data/{contextDataId}/attachments":{"get":{"tags":["Attachments"],"summary":"Get all for item","operationId":"getAllAttachments","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data to fetch all attachments from.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"403":{"description":"Forbidden!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelAttachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelAttachment"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelAttachment"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelAttachment"}}}}}},"post":{"tags":["Attachments"],"summary":"Create new","operationId":"createAttachment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the attachment is created.","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","description":"The name of the attachment.","required":true,"schema":{"type":"string"}},{"name":"extension","in":"query","description":"The extension of the attachment.","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","description":"The mimeType of the attachment.","required":false,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Attachment"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Attachment"}}}}}}},"/data/comments":{"post":{"tags":["Comments"],"summary":"Get all comments for context items in bulk","operationId":"getAllCommentsInBulk","requestBody":{"description":"object containing a list of context item identifiers","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdListModel"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}}}},"application/hal+json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}}}}}}}}},"/export/{identifier}":{"get":{"tags":["Export"],"summary":"Get export","operationId":"getExport","parameters":[{"name":"identifier","in":"path","description":"The identifier of the export.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok"},"404":{"description":"EntityModel not found"},"401":{"description":"Unauthorized"},"410":{"description":"Gone"}}},"head":{"tags":["Export"],"summary":"Check existence","operationId":"checkExport","parameters":[{"name":"identifier","in":"path","description":"The identifier of the export.","required":true,"schema":{"type":"string"}}],"responses":{"404":{"description":"EntityModel not found"},"204":{"description":"No Content"},"401":{"description":"Unauthorized"},"410":{"description":"Gone"}}}},"/workflow/states/search":{"get":{"tags":["Workflow"],"summary":"Search for workflow states","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchWorkflowStates","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelString"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelString"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelString"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelString"}}}}}}},"/workflow/search":{"get":{"tags":["Workflow"],"summary":"Search for workflows","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchWorkflow","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelWorkflow"}}}}}}},"/view/{identifier}/enriched":{"get":{"tags":["Context view"],"summary":"Enrich a saved context view","operationId":"enrichView","parameters":[{"name":"identifier","in":"path","description":"The identifier of the context view to be fetched.","required":true,"schema":{"type":"string"}},{"name":"updateLastUsedInformation","in":"query","description":"Optionally set this to false to not have the opening logged into LastUsedInformation.<br/>Defaults to true","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextView"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextView"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextView"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ContextView"}}}}}}},"/source/sync/{contextItemIdentifier}/availability":{"get":{"tags":["Source Synchronization"],"summary":"Check availability of specific context item in source","operationId":"availability","parameters":[{"name":"contextItemIdentifier","in":"path","description":"The identifier of the context item to check availability for","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Availability"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Availability"}}}}}}},"/source/sync/failed":{"get":{"tags":["Failed Event Frame Synchronization"],"summary":"Search","operationId":"searchFailedEventFrameSynchronization","parameters":[{"name":"query","in":"query","description":"The search query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelFailedEventFrameSynchronization"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelFailedEventFrameSynchronization"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelFailedEventFrameSynchronization"}}}}}}},"/source/sync/background":{"get":{"tags":["Source Synchronization in background"],"summary":"Search background sync jobs","operationId":"searchBackgroundSync","parameters":[{"name":"query","in":"query","description":"The search query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBackgroundSyncJobRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelBackgroundSyncJobRepresentationModel"}}}}}}},"/source/search":{"get":{"tags":["Source"],"summary":"Search","operationId":"searchSource","parameters":[{"name":"query","in":"query","description":"The search query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelSource"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelSource"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PagedModelSource"}}}}}}},"/migration/property-key/views":{"get":{"tags":["Property key migration"],"summary":"Get view dry-run results","operationId":"getPropertyKeyMigrationViews","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationViewData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationViewData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationViewData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationViewData"}}}}}}},"/migration/property-key/report":{"get":{"tags":["Property key migration"],"summary":"Download the Property key migration dry-run report","operationId":"downloadDryrunReport","responses":{"200":{"description":"Ok"},"404":{"description":"Resource Not Found"},"401":{"description":"Unauthorized"}}}},"/migration/property-key/monitors":{"get":{"tags":["Property key migration"],"summary":"Get monitor dry-run results","operationId":"getPropertyKeyMigrationMonitors","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationMonitorData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationMonitorData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationMonitorData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationMonitorData"}}}}}}},"/migration/property-key/fields":{"get":{"tags":["Property key migration"],"summary":"Get field dry-run results","operationId":"getPropertyKeyMigrationFields","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationFieldData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationFieldData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationFieldData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelPropertyKeyMigrationFieldData"}}}}}}},"/migration/property-key/field-uniqueness":{"get":{"tags":["Property key migration"],"summary":"Get field migrated keys uniqueness","operationId":"getPropertyKeyMigrationFieldUniqueness","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldUniquenessRepresentationModel"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/FieldUniquenessRepresentationModel"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldUniquenessRepresentationModel"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/FieldUniquenessRepresentationModel"}}}}}}},"/keywords/search":{"get":{"tags":["Keywords"],"summary":"Search keywords","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchKeyword","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelKeyword"}}}}}}},"/import/{id}":{"get":{"tags":["data-import-controller"],"summary":"Get a file.","operationId":"get","parameters":[{"name":"id","in":"path","description":"The id of the file to retrieve.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataImport"}}}},"404":{"description":"Resource(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataImport"}}}},"401":{"description":"Unauthorized","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DataImport"}}}}}},"delete":{"tags":["data-import-controller"],"summary":"Delete a file.","operationId":"delete","parameters":[{"name":"id","in":"path","description":"The id of the file to delete.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"401":{"description":"Unauthorized"}}}},"/import/{id}/errors":{"get":{"tags":["data-import-controller"],"summary":"Download the generated error file for a specific file.","operationId":"errors","parameters":[{"name":"id","in":"path","description":"The id of the file for which the error file should be retrieved.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok"},"404":{"description":"Resource(s) not found!"},"401":{"description":"Unauthorized"}}}},"/import/{id}/download":{"get":{"tags":["data-import-controller"],"summary":"Download a file by id.","operationId":"download","parameters":[{"name":"id","in":"path","description":"The id of the file to download.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Ok"},"404":{"description":"Resource(s) not found!"},"401":{"description":"Unauthorized"}}}},"/history/{contextDataId}":{"get":{"tags":["History"],"summary":"Get audit trail for item","operationId":"getAuditTrail","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the ContextItem.","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelAuditTrail"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelAuditTrail"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}}}}},"/fields/search":{"get":{"tags":["Fields"],"summary":"Search fields","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchField","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelField"}}}}}}},"/data/{contextDataId}/attachments/{identifier}/download":{"get":{"tags":["Attachments"],"summary":"Download","operationId":"downloadAttachment","parameters":[{"name":"contextDataId","in":"path","description":"The identifier of the context data for which the attachment is created.","required":true,"schema":{"type":"string"}},{"name":"identifier","in":"path","description":"The identifier of the attachment.","required":true,"schema":{"type":"string"}}],"responses":{"403":{"description":"Forbidden!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"404":{"description":"EntityModel(s) not found!","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"201":{"description":"Created"},"401":{"description":"Unauthorized"}}}},"/data/search":{"get":{"tags":["Context data"],"summary":"Search context data","description":"Available search operators:\n\n\tequal(==)\n\tnot equal(!=)\n\tin(=in=)\n\tnot in(=out=)\nAvailable logical operators:\n\n\tAND(;) \n\tOR(,) \n\nYou can makes groups using parentheses \n\n\t((expression),(expression));expression\n\nBy default, the AND operator takes precedence <br/>Wildcards are supported \n\n\tWildcard symbol: * \nWildcards can be at any position \n\nSearch values have to be surrounded by quotes\n\n\tproperty1=='value1';property2=in=('value2','value3')\t","operationId":"searchContextData","parameters":[{"name":"query","in":"query","description":"The search query","required":true,"schema":{"type":"string"}},{"name":"useTimeSeriesIdentifier","in":"query","description":"Indicates if time series identifier should be returned for tags references","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"Zero-based page index (0..N)","schema":{"type":"integer","default":0}},{"name":"size","in":"query","description":"The size of the page to be returned","schema":{"type":"integer","default":20}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/PagedModelContextData"}}}}}}},"/item/batch/filters":{"delete":{"tags":["Context item"],"summary":"Delete bulk by definition","operationId":"deleteContextItemsByDefinition","requestBody":{"description":"Model containing set of filters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteByFiltersModel"}}},"required":true},"responses":{"404":{"description":"EntityModel(s) not found!","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}},"application/hal+json":{"schema":{"$ref":"#/components/schemas/ErrorMessage"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"202":{"description":"Accepted: process is running in the background","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"string"}},"application/hal+json":{"schema":{"type":"string"}}}}}}},"/export/cleanup":{"delete":{"tags":["Export"],"summary":"Remove all expired","operationId":"cleanupExports","responses":{"403":{"description":"Forbidden"},"204":{"description":"Clean up is successful"}}}}},"components":{"schemas":{"SourceModel":{"type":"object","properties":{"identifier":{"type":"string","description":"The source's identifier.","format":"uuid"},"enabled":{"type":"boolean","description":"Indication whether live sync should be enabled or not."}},"description":"The source to which this workflow belongs"},"WorkflowModel":{"required":["endState","externalId","name","startState","states"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the workflow","format":"uuid"},"source":{"$ref":"#/components/schemas/SourceModel"},"externalId":{"type":"string","description":"The identifier of the workflow in the external source system"},"name":{"maxLength":64,"minLength":1,"type":"string","description":"The name of the workflow"},"startState":{"maxLength":64,"minLength":1,"type":"string","description":"The start state of the workflow"},"endState":{"maxLength":64,"minLength":1,"type":"string","description":"The end state of the workflow"},"states":{"uniqueItems":true,"type":"array","description":"The possible states of the workflow","items":{"type":"string","description":"The possible states of the workflow"}},"deletable":{"type":"boolean","description":"If the workflow is deletable or not"}},"description":"Represents a work flow  definition"},"ErrorMessage":{"type":"object","properties":{"statusCode":{"$ref":"#/components/schemas/HttpStatusCode"},"errorCode":{"type":"string","description":"The specific error code of the exception","example":"string"},"message":{"type":"string","description":"The exception message"},"details":{"type":"object","description":"The details of the exception","example":{"key":"value"}}},"description":"Represents a tm-context exception"},"HttpStatusCode":{"type":"object","properties":{"error":{"type":"boolean"},"is4xxClientError":{"type":"boolean"},"is5xxServerError":{"type":"boolean"},"is1xxInformational":{"type":"boolean"},"is2xxSuccessful":{"type":"boolean"},"is3xxRedirection":{"type":"boolean"}},"description":"The httpStatus code of the exception","example":"4xx"},"Link":{"type":"object","properties":{"rel":{"type":"string"},"href":{"type":"string"},"hreflang":{"type":"string"},"media":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"deprecation":{"type":"string"},"profile":{"type":"string"},"name":{"type":"string"}}},"Source":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the source","format":"uuid"},"name":{"type":"string","description":"The name of the source"},"type":{"type":"string","description":"The type of the source - CONTEXT or EVENT"},"externalId":{"type":"string","description":"The identifier of the source in tm-datasource"},"enabled":{"type":"boolean","description":"Indication whether the LIVE synchronization for this source is enabled or not"},"currentIntervalStart":{"type":"string","description":"Lower end of the current interval being synced","format":"date-time"},"currentIntervalEnd":{"type":"string","description":"Upper end of the current interval being synced","format":"date-time"},"currentIntervalCount":{"type":"integer","description":"Number of items in the current interval being synced","format":"int32"},"currentIntervalPage":{"type":"integer","description":"Current page of the current interval being synced","format":"int32"},"lastSyncedItemDate":{"type":"string","description":"Last modified date of the last synced item","format":"date-time"},"exceptionMessage":{"type":"string","description":"Exception message, should one have occurred in the current interval"},"syncPageSize":{"type":"integer","description":"The sync page size","format":"int32"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a source and its synchronization status"},"Workflow":{"required":["endState","name","startState","states"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the workflow","format":"uuid"},"name":{"type":"string","description":"The name of the workflow"},"startState":{"type":"string","description":"The start state of the workflow"},"endState":{"type":"string","description":"The end state of the workflow"},"states":{"uniqueItems":true,"type":"array","description":"The possible states of the workflow","items":{"type":"string","description":"The possible states of the workflow"}},"deletable":{"type":"boolean","description":"Boolean that indicates if the workflow is deletable"},"source":{"$ref":"#/components/schemas/Source"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a work flow  definition"},"WorkflowStatesModel":{"required":["states"],"type":"object","properties":{"states":{"uniqueItems":true,"type":"array","description":"The possible states of the work flow","items":{"type":"string","description":"The possible states of the work flow"}}},"description":"Represents the possible states for a work flow definition"},"WorkflowStates":{"required":["states"],"type":"object","properties":{"states":{"uniqueItems":true,"type":"array","description":"The possible states of the work flow","items":{"type":"string","description":"The possible states of the work flow"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a work flow states definition"},"TriggerDefinitionModel":{"required":["configuration","type"],"type":"object","properties":{"state":{"type":"string","description":"The workflow state causing this trigger to fire. An empty state means the trigger should fire on all possible states."},"type":{"type":"string","description":"The trigger type.","enum":["EXPORT_DASHBOARD"]},"configuration":{"type":"object","additionalProperties":{"type":"string","description":"The configuration for the trigger. Depends on the selected type."},"description":"The configuration for the trigger. Depends on the selected type."}},"description":"Represents a trigger definition"},"TriggerDefinition":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the trigger"},"state":{"type":"string","description":"The triggering state, an empty state means the trigger should fire on all possible states."},"type":{"type":"string","description":"The trigger type","enum":["EXPORT_DASHBOARD"]},"configuration":{"type":"object","additionalProperties":{"type":"string","description":"The configuration for the trigger. Depends on the selected type"},"description":"The configuration for the trigger. Depends on the selected type"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a trigger definition"},"TypeAccessRuleModel":{"required":["permissions","subjectId","subjectType"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the access rule."},"subjectId":{"type":"string","description":"The identifier of the subject."},"subjectType":{"type":"string","description":"The type of the subject.","enum":["GUEST","EVERYONE","GROUP","USER","USER, GROUP, EVERYONE, GUEST"]},"permissions":{"uniqueItems":true,"type":"array","description":"A set of permissions the subject has on the specified object.","items":{"type":"string","description":"A set of permissions the subject has on the specified object.","enum":["CONTEXT_TYPE_READ","CONTEXT_TYPE_WRITE","CONTEXT_TYPE_DELETE","CONTEXT_TYPE_READ, CONTEXT_TYPE_WRITE, CONTEXT_TYPE_DELETE"]},"enum":["CONTEXT_TYPE_READ, CONTEXT_TYPE_WRITE, CONTEXT_TYPE_DELETE"]}},"description":"Object used for creating and updating an access rule"},"AccessRule":{"required":["objectId","paths","permissions","subjectId","subjectType"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the access rule."},"objectId":{"type":"string","description":"The identifier of the object."},"paths":{"type":"array","description":"An array of paths towards the object.","items":{"type":"string","description":"An array of paths towards the object."}},"subjectId":{"type":"string","description":"The identifier of the subject."},"subjectType":{"type":"string","description":"The type of the subject: USER, GROUP, EVERYBODY, GUEST.","enum":["GUEST","EVERYONE","GROUP","USER"]},"permissions":{"uniqueItems":true,"type":"array","description":"A set of permissions the subject has on the specified object. Can be an empty set.","items":{"type":"string","description":"A set of permissions the subject has on the specified object. Can be an empty set.","enum":["CONTEXT_TYPE_READ","CONTEXT_TYPE_WRITE","CONTEXT_TYPE_DELETE"]}},"userDetailsResource":{"$ref":"#/components/schemas/PermissionUserDetails"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents an access rule definition"},"PermissionUserDetails":{"type":"object","properties":{"userId":{"type":"string","description":"User's id."},"userName":{"type":"string","description":"User's username."},"firstName":{"type":"string","description":"User's first name."},"lastName":{"type":"string","description":"User's last name."},"admin":{"type":"boolean","description":"Indication whether user is an admin or not."}},"description":"Represents a subset of user details"},"ContextDataTypeModel":{"required":["icon","name"],"type":"object","properties":{"identifier":{"pattern":"[0-9a-zA-Z_]{4,255}","type":"string","description":"The identifier of the context data type. If empty, one will be generated"},"source":{"$ref":"#/components/schemas/SourceModel"},"externalId":{"type":"string","description":"The identifier of the type in the external source system"},"name":{"type":"string","description":"The name of the context data type"},"workflow":{"$ref":"#/components/schemas/WorkflowModel"},"color":{"pattern":"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$","type":"string","description":"The color of the context data type in hex value"},"icon":{"type":"string","description":"The icon name of the context data type"},"fields":{"type":"array","description":"The custom fields linked to this context data type","items":{"$ref":"#/components/schemas/FieldModel"}},"deletable":{"type":"boolean","description":"If the ContextDataType is deletable or not"},"approvalsEnabled":{"type":"boolean","description":"Whether the ContextDataType has approvals enabled or not"},"auditTrailEnabled":{"type":"boolean","description":"Whether the ContextDataType has audit trail enabled or not"},"fieldLabelIdentifier":{"type":"string","description":"The id of the custom field that will be used as a label on gantt view","format":"uuid","example":"2b2ef25b-5350-4ae7-9c10-779ab5f566ed"}},"description":"Represents a context data type  definition"},"FieldModel":{"required":["name","propertyKey","type"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the field","format":"uuid","example":"2b2ef25b-5350-4ae7-9c10-779ab5f566ed"},"propertyKey":{"type":"string","description":"The property key of the field"},"name":{"type":"string","description":"The name of the field"},"type":{"type":"string","description":"The field type, must be one of these values: STRING, NUMERIC, ENUMERATION"},"placeholder":{"type":"string","description":"The placeholder of the field, an example value for what this field's value might look like"},"options":{"type":"array","description":"The possible options of the field, only applicable when type Enumeration is chosen","items":{"type":"string","description":"The possible options of the field, only applicable when type Enumeration is chosen"}}},"description":"Represents a custom field definition"},"AggregationOperationRepresentationModel":{"type":"object","properties":{"name":{"type":"string"},"queryType":{"type":"string","enum":["DISCRETE_MEDIAN","CONTINUOUS_MEDIAN","MOST_COMMON","LEAST_COMMON","REGULAR"]},"returnType":{"type":"string","enum":["NUMERIC","STRING","DURATION"]},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"The aggregations that are defined on this field"},"ContextDataType":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the context data type"},"name":{"type":"string","description":"The name of the context data type"},"workflow":{"$ref":"#/components/schemas/Workflow"},"color":{"pattern":"^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$","type":"string","description":"The color of the context data type in hex value"},"icon":{"type":"string","description":"The icon name of the context data type"},"externalId":{"type":"string","description":"The external id of the context data type"},"deleted":{"type":"boolean","description":"Boolean that indicates if the context data type is deleted"},"deletable":{"type":"boolean","description":"Boolean that indicates if the context data type is deletable"},"approvalsEnabled":{"type":"boolean","description":"Boolean that indicates whether approvals are enabled or not"},"auditTrailEnabled":{"type":"boolean","description":"Boolean that indicates whether audit trail is enabled or not"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/Field"}},"permissions":{"uniqueItems":true,"type":"array","description":"Set of permissions the current user has on this type","items":{"type":"string","description":"Set of permissions the current user has on this type"}},"fieldLabelIdentifier":{"type":"string","description":"The id of the custom field that will be used as a label on gantt view"},"source":{"$ref":"#/components/schemas/Source"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a context data type  definition"},"Field":{"required":["name","type"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the field"},"propertyKey":{"type":"string","description":"The technical identifier of the field"},"name":{"type":"string","description":"The name of the field"},"type":{"type":"string","description":"The field type, must be one of these values: STRING, NUMERIC, ENUMERATION"},"placeholder":{"type":"string","description":"The placeholder of the field, an example value for what this field's value might look like"},"options":{"type":"array","description":"The possible options of the field, only applicable when type Enumeration is chosen","items":{"type":"string","description":"The possible options of the field, only applicable when type Enumeration is chosen"}},"aggregations":{"type":"array","description":"The aggregations that are defined on this field","items":{"$ref":"#/components/schemas/AggregationOperationRepresentationModel"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a custom field definition"},"BackgroundSyncJobStatusModel":{"type":"object","properties":{"status":{"type":"string","description":"Status of this background sync.","enum":["WAITING_FOR_SCHEDULING","SCHEDULED","WAITING","RUNNING","DONE","CANCELLED","FAILED"]}},"description":"Represents a status for a background sync interval."},"BackgroundSyncJobRepresentationModel":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of this sync job","format":"uuid"},"source":{"$ref":"#/components/schemas/Source"},"type":{"type":"string","description":"Type of background sync","enum":["EXCESSIVE","HISTORICAL","CLEANUP_NIGHTLY","CLEANUP_MANUAL","CLEANUP_AFTER_AF"]},"status":{"type":"string","description":"Status of this background sync.","enum":["WAITING_FOR_SCHEDULING","SCHEDULED","WAITING","RUNNING","DONE","CANCELLED","FAILED"]},"intervalStart":{"type":"string","description":"Lower end of the interval to be synced","format":"date-time"},"intervalEnd":{"type":"string","description":"Upper end of the interval to be synced","format":"date-time"},"intervalCount":{"type":"integer","description":"Number of items in the interval to be synced","format":"int32"},"intervalPage":{"type":"integer","description":"Current page of the interval being synced","format":"int32"},"submitDate":{"type":"string","description":"Date this background interval was submitted to the queue","format":"date-time"},"startDate":{"type":"string","description":"Date the synchronization process started","format":"date-time"},"endDate":{"type":"string","description":"Date the synchronization process ended","format":"date-time"},"holdDate":{"type":"string","description":"Date the synchronization process was put on hold","format":"date-time"},"resumeDate":{"type":"string","description":"Date the synchronization process resumed","format":"date-time"},"holdCount":{"type":"integer","description":"Number of times the synchronization process was put on hold","format":"int32"},"lastSyncedItemDate":{"type":"string","description":"Last modified date of the last synced item","format":"date-time"},"exceptionMessage":{"type":"string","description":"Exception message, should one have occurred in the current interval"},"data":{"type":"object","additionalProperties":{"type":"object","description":"Additional data related to the job"},"description":"Additional data related to the job"},"cancelable":{"type":"boolean"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents an interval to synchronize in the background"},"ContextItemComponentModel":{"required":["reference","type"],"type":"object","properties":{"type":{"type":"string","description":"The data reference type"},"reference":{"type":"string","description":"The id of the referenced data"},"identifier":{"type":"string","description":"The identifier of the data reference"}},"description":"Represents a data reference definition"},"ContextItemEventModel":{"required":["occurred"],"type":"object","properties":{"state":{"type":"string","description":"The state of the event, can be stateless if the context item does not describe a workflow"},"occurred":{"type":"string","description":"The date on which the event occurred","format":"date-time"},"externalId":{"type":"string","description":"The external id of the context event"},"identifier":{"type":"string","description":"The identifier of the context event"}},"description":"Represents a context event definition"},"ContextItemModel":{"required":["events","type"],"type":"object","properties":{"description":{"type":"string","description":"The description of the context item"},"externalId":{"type":"string","description":"The external system's original id"},"events":{"type":"array","description":"The events of the context item","items":{"$ref":"#/components/schemas/ContextItemEventModel"}},"components":{"type":"array","description":"The components of the context item","items":{"$ref":"#/components/schemas/ContextItemComponentModel"}},"type":{"$ref":"#/components/schemas/ContextDataTypeModel"},"keywords":{"uniqueItems":true,"type":"array","description":"The keywords the context data is tagged with","items":{"type":"string","description":"The keywords the context data is tagged with"}},"fields":{"type":"object","additionalProperties":{"type":"object","description":"Contains the optional fields as their key and values"},"description":"Contains the optional fields as their key and values"}},"description":"Represents a context item definition"},"ContextEvent":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the context event"},"occurred":{"type":"string","description":"The timestamp when this event took place","format":"date-time"},"state":{"type":"string","description":"The state of this event"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a context event definition"},"ContextItem":{"type":"object","properties":{"permissions":{"uniqueItems":true,"type":"array","description":"Permissions on the context data","items":{"type":"string","description":"Permissions on the context data"}},"identifier":{"type":"string","description":"The identifier of the context item"},"shortKey":{"type":"string","description":"The short key of the context item"},"externalId":{"type":"string","description":"The external system's original id"},"description":{"type":"string","description":"The description of the context item"},"events":{"type":"array","description":"The events of the context item","items":{"$ref":"#/components/schemas/ContextEvent"}},"lastModifiedDate":{"type":"string","description":"The date of the most recent event of the context item","format":"date-time"},"createdBy":{"type":"string","description":"The uuid of the user who created the context item"},"createdDate":{"type":"string","description":"The date this context item was created","format":"date-time"},"userDetails":{"$ref":"#/components/schemas/UserDetails"},"components":{"type":"array","description":"The components for which the context item is registered","items":{"$ref":"#/components/schemas/ContextItemComponent"}},"type":{"$ref":"#/components/schemas/ContextDataType"},"workFlowDescribed":{"type":"boolean","description":"True if the context item type has a workflow"},"fields":{"type":"object","additionalProperties":{"type":"object","description":"Contains the optional fields as their key and values"},"description":"Contains the optional fields as their key and values"},"keywords":{"uniqueItems":true,"type":"array","description":"The keywords the context data is tagged with","items":{"type":"string","description":"The keywords the context data is tagged with"}},"startEventDate":{"type":"string","description":"The date of the start event of the context item","format":"date-time"},"endEventDate":{"type":"string","description":"The date of the end event","format":"date-time"},"lastEventState":{"type":"string","description":"The state of the most recent event of the context item"},"totalDuration":{"type":"string","description":"The total duration of the context item"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"ContextItemComponent":{"type":"object","properties":{"identifier":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"reference":{"type":"string"},"parentName":{"type":"string"},"path":{"type":"string"},"permissions":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"deleted":{"type":"boolean"},"include":{"type":"string","enum":["SELF","ANCESTORS","DESCENDANTS"]},"paths":{"type":"array","items":{"type":"string"}}},"description":"The component for which the context item is registered"},"UserDetails":{"type":"object","properties":{"identifier":{"type":"string","description":"The uuid of the user who created the context item"},"username":{"type":"string","description":"The name of the user who created the context item"},"firstName":{"type":"string","description":"The first name of the user who created the context item"},"lastName":{"type":"string","description":"The last name of the user who created the context item"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"The details of the user who created the context item"},"ContextDataModel":{"required":["keywords","type"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/ContextDataTypeModel"},"description":{"type":"string","description":"The description of the context data"},"externalId":{"type":"string","description":"The external id of the context data"},"keywords":{"uniqueItems":true,"type":"array","description":"The keywords the context data is tagged with","items":{"type":"string","description":"The keywords the context data is tagged with"}},"fields":{"type":"object","additionalProperties":{"type":"object","description":"The optional fields as their key and values"},"description":"The optional fields as their key and values"}},"description":"Represents a context data definition"},"ContextData":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the context data"},"shortKey":{"type":"string","description":"The short key of the context event"},"description":{"type":"string","description":"The description of the context data"},"externalId":{"type":"string","description":"The external identifier of the context data"},"type":{"$ref":"#/components/schemas/ContextDataType"},"keywords":{"uniqueItems":true,"type":"array","description":"The keywords for this context data ","items":{"type":"string","description":"The keywords for this context data "}},"fields":{"type":"object","additionalProperties":{"type":"object","description":"The optional fields as their key and values"},"description":"The optional fields as their key and values"},"permissions":{"uniqueItems":true,"type":"array","description":"Permissions on the context data","items":{"type":"string","description":"Permissions on the context data"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a context data definition"},"DataReferenceModel":{"required":["reference","type"],"type":"object","properties":{"type":{"type":"string","description":"The data reference type"},"reference":{"type":"string","description":"The id of the referenced data"}},"description":"Represents a data reference definition"},"DataReference":{"required":["reference","type"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the data reference"},"type":{"type":"string","description":"The data reference type"},"reference":{"type":"string","description":"The id of the referenced data"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a data reference definition"},"ContextEventModel":{"required":["occurred"],"type":"object","properties":{"state":{"type":"string","description":"The state of the event, can be stateless if the context item does not describe a workflow"},"occurred":{"type":"string","description":"The date on which the event occurred","format":"date-time"},"externalId":{"type":"string","description":"The external id of the context event"}},"description":"Represents a context event definition"},"CommentModel":{"required":["content"],"type":"object","properties":{"content":{"type":"string","description":"The comment content"}},"description":"Represents a comment definition"},"Comment":{"required":["content"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the comment"},"content":{"type":"string","description":"The content of the comment"},"createdDate":{"type":"string","description":"The date when the comment was created","format":"date-time"},"lastModifiedDate":{"type":"string","description":"The date of the last modification of the comment","format":"date-time"},"createdBy":{"type":"string"},"lastModifiedBy":{"type":"string"},"userDetails":{"$ref":"#/components/schemas/UserDetails"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a comment definition"},"AttachmentModel":{"required":["name"],"type":"object","properties":{"name":{"type":"string","description":"The name of the attachment"},"extension":{"type":"string","description":"The extension of the attachment"},"type":{"type":"string","description":"The type of the attachment"}},"description":"Represents an attachment definition"},"Attachment":{"required":["name"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the attachment"},"name":{"type":"string","description":"The name of the attachment"},"type":{"type":"string","description":"The mine type of the attachment"},"extension":{"type":"string","description":"The extension of the attachment"},"createdDate":{"type":"string","description":"The date when the attachment was created","format":"date-time"},"lastModifiedDate":{"type":"string","description":"The date of the last modification of the attachment","format":"date-time"},"createdBy":{"type":"string","description":"The user who created the attachment"},"lastModifiedBy":{"type":"string","description":"The user who made the latest update to the attachment"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a attachment definition"},"AssetTypeModel":{"type":"object","properties":{"assets":{"uniqueItems":true,"type":"array","description":"Set of asset identifiers","items":{"type":"string","description":"Set of asset identifiers","format":"uuid"}},"types":{"uniqueItems":true,"type":"array","description":"Set of type identifiers","items":{"type":"string","description":"Set of type identifiers"}}},"description":"Collections of assets and types"},"ApprovalFilter":{"type":"object","description":"Represents an Approval filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"withApprovals":{"type":"boolean","description":"Filter context items with or without approvals"}}}]},"ComponentFilter":{"type":"object","description":"Represents a Component filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"mode":{"type":"string"},"components":{"type":"array","items":{"$ref":"#/components/schemas/ComponentValue"}},"includeAncestors":{"type":"boolean"},"componentResources":{"type":"array","items":{"$ref":"#/components/schemas/ContextItemComponent"}},"numComponents":{"type":"integer","format":"int32"},"resolvedComponents":{"uniqueItems":true,"type":"array","items":{"type":"string"}}}}]},"ComponentValue":{"required":["type"],"type":"object","properties":{"identifier":{"type":"string"},"path":{"type":"string"},"type":{"type":"string"},"include":{"type":"string","enum":["SELF","ANCESTORS","DESCENDANTS"]}}},"CountIndependentSearchRequestModel":{"type":"object","properties":{"filters":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}},"sortDirection":{"type":"string","description":"The sorting direction.","example":"desc","default":"desc"},"sortProperties":{"type":"array","description":"List of properties to sort on in the 'sortDirection' direction.","items":{"type":"string","description":"List of properties to sort on in the 'sortDirection' direction."}},"fetchSize":{"type":"integer","description":"Number of items to fetch.","format":"int32","default":60},"continuationToken":{"type":"string","description":"Token generated by the service that represent a marker for where the previous page ended."}},"description":"Represents a search request definition used in the count independent search."},"CreatedByFilter":{"required":["users"],"type":"object","description":"Represents a CreatedBy filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"users":{"type":"array","items":{"type":"string"}},"userDetails":{"type":"array","items":{"$ref":"#/components/schemas/UserDetails"}}}}]},"CreatedDateFilter":{"required":["createdDate","operator"],"type":"object","description":"Represents a created date filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"createdDate":{"type":"string","format":"date-time"},"operator":{"type":"string","enum":["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL"]},"rangeOperator":{"type":"string","description":"The range operator to fetch interval","enum":["RANGE_CONTAINS_EVENT_START_DATE","RANGE_CONTAINS_EVENT_RANGE"]}}}]},"CurrentStateFilter":{"type":"object","description":"Represents a Current state filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"states":{"type":"array","items":{"type":"string"}},"mode":{"type":"string"}}}]},"DescriptionFilter":{"type":"object","description":"Represents a Description filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"values":{"type":"array","items":{"type":"string"}},"mode":{"type":"string"}}}]},"DurationCondition":{"required":["operator"],"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string","enum":["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL"]}},"description":"Represents a duration condition definition"},"DurationFilter":{"required":["conditions"],"type":"object","description":"Represents a value filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"conditions":{"maxItems":2,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/DurationCondition"}}}}]},"EnumerationFieldFilter":{"type":"object","description":"Represents an Enumeration Field filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"fieldIdentifier":{"type":"string","format":"uuid"},"field":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"customField":{"$ref":"#/components/schemas/Field"},"mode":{"type":"string"}}}]},"ErrorDetail":{"type":"object","properties":{"defaultMessage":{"type":"string"}}},"ExternalSourceFilter":{"type":"object","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"external":{"type":"boolean","description":"Allow items from external (true) or internal (false) sources only"}}}]},"Filter":{"type":"object","properties":{"type":{"type":"string","writeOnly":true,"enum":["INTERVAL_FILTER","LIVE_INTERVAL_FILTER","PERIOD_FILTER","COMPONENT_FILTER","TYPE_FILTER","KEYWORD_FILTER","STRING_FIELD_FILTER","ENUMERATION_FIELD_FILTER","NUMERIC_FIELD_FILTER","PROPERTY_FIELD_FILTER","CREATED_BY_FILTER","DESCRIPTION_FILTER","DURATION_FILTER","APPROVAL_FILTER","CURRENT_STATE_FILTER","CREATED_DATE_FILTER","EXTERNAL_SOURCE_FILTER"]},"valid":{"type":"boolean","readOnly":true},"validationResultMessages":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/ValidationResultMessage"}},"order":{"type":"integer","format":"int32"}},"description":"Represents the base Filter","discriminator":{"propertyName":"type","mapping":{"INTERVAL_FILTER":"#/components/schemas/IntervalFilter","LIVE_INTERVAL_FILTER":"#/components/schemas/LiveIntervalFilter","PERIOD_FILTER":"#/components/schemas/PeriodFilter","TYPE_FILTER":"#/components/schemas/TypeFilter","COMPONENT_FILTER":"#/components/schemas/ComponentFilter","KEYWORD_FILTER":"#/components/schemas/KeywordFilter","STRING_FIELD_FILTER":"#/components/schemas/StringFieldFilter","ENUMERATION_FIELD_FILTER":"#/components/schemas/EnumerationFieldFilter","NUMERIC_FIELD_FILTER":"#/components/schemas/NumericFieldFilter","PROPERTY_FIELD_FILTER":"#/components/schemas/PropertyFieldFilter","CREATED_BY_FILTER":"#/components/schemas/CreatedByFilter","DESCRIPTION_FILTER":"#/components/schemas/DescriptionFilter","DURATION_FILTER":"#/components/schemas/DurationFilter","APPROVAL_FILTER":"#/components/schemas/ApprovalFilter","CURRENT_STATE_FILTER":"#/components/schemas/CurrentStateFilter","CREATED_DATE_FILTER":"#/components/schemas/CreatedDateFilter","EXTERNAL_SOURCE_FILTER":"#/components/schemas/ExternalSourceFilter"}}},"I18nMessage":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/ErrorDetail"},"message":{"type":"string"},"parameters":{"type":"object","additionalProperties":{"type":"object"}}}},"IntervalFilter":{"required":["endDate","intervalType","startDate"],"type":"object","description":"Represents a Interval filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"startDate":{"type":"string","description":"The start of the filter segment","format":"date-time"},"endDate":{"type":"string","description":"The end of the filter segment","format":"date-time"},"intervalType":{"type":"string","description":"The intervalType: EVENT(default) or CREATED_DATE"},"rangeOperator":{"type":"string","description":"The range operator to fetch interval","enum":["RANGE_CONTAINS_EVENT_START_DATE","RANGE_CONTAINS_EVENT_RANGE"]}}}]},"KeywordFilter":{"type":"object","description":"Represents a Keyword filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"keywords":{"type":"array","items":{"type":"string"}},"mode":{"type":"string"}}}]},"LiveIntervalFilter":{"type":"object","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"rangeOperator":{"type":"string","description":"The range operator to fetch interval","enum":["RANGE_CONTAINS_EVENT_START_DATE","RANGE_CONTAINS_EVENT_RANGE"]}}}]},"NumericCondition":{"required":["operator","value"],"type":"object","properties":{"value":{"type":"number","format":"double"},"operator":{"type":"string","enum":["EQUAL","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL"]}},"description":"Represents a numeric condition definition"},"NumericFieldFilter":{"type":"object","description":"Represents a Numeric Field filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"fieldIdentifier":{"type":"string","format":"uuid"},"field":{"type":"string"},"conditions":{"maxItems":2,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/NumericCondition"}},"customField":{"$ref":"#/components/schemas/Field"},"mode":{"type":"string"}}}]},"PeriodFilter":{"type":"object","description":"Represents a period filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"periodType":{"type":"string","description":"The period type. Deprecated field. Use period instead.","deprecated":true,"enum":["ONE_HOUR","LAST_HOUR","TWO_HOURS","LAST_TWO_HOURS","EIGHT_HOURS","LAST_EIGHT_HOURS","ONE_DAY","LAST_DAY","SEVEN_DAYS","LAST_WEEK","LAST_FOUR_WEEKS","THIRTY_DAYS","INVALID"]},"period":{"type":"string","description":"The period in String format","format":"ISO8601"},"live":{"type":"boolean","description":"Indicates to start a live search"},"rangeOperator":{"type":"string","description":"The range operator to fetch interval","enum":["RANGE_CONTAINS_EVENT_START_DATE","RANGE_CONTAINS_EVENT_RANGE"]}}}]},"PropertyFieldFilter":{"required":["key","values"],"type":"object","description":"Represents a String Field filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"fieldIdentifier":{"type":"string","format":"uuid"},"field":{"type":"string"},"key":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}}]},"StringFieldFilter":{"type":"object","description":"Represents a String Field filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"fieldIdentifier":{"type":"string","format":"uuid"},"field":{"type":"string"},"values":{"maxItems":2147483647,"minItems":1,"type":"array","items":{"type":"string"}},"customField":{"$ref":"#/components/schemas/Field"},"mode":{"type":"string"}}}]},"TypeFilter":{"required":["types"],"type":"object","description":"Represents a type filter definition","allOf":[{"$ref":"#/components/schemas/Filter"},{"type":"object","properties":{"types":{"type":"array","items":{"type":"string"}},"typeResources":{"type":"array","items":{"$ref":"#/components/schemas/ContextDataType"}}}}]},"ValidationResultMessage":{"type":"object","properties":{"key":{"type":"string"},"message":{"$ref":"#/components/schemas/I18nMessage"}},"readOnly":true},"TokenMetaData":{"type":"object","properties":{"continuationToken":{"type":"string"}}},"TokenizedPageModelContextItem":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextItem"}},"page":{"$ref":"#/components/schemas/TokenMetaData"}}},"SearchRequestModel":{"type":"object","properties":{"filters":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}}},"description":"Represents a search request definition"},"CountRepresentationModel":{"type":"object","properties":{"totalCount":{"type":"integer","format":"int64"}}},"SearchParametersModel":{"required":["query"],"type":"object","properties":{"query":{"type":"string","description":"Search query"},"hasPermission":{"type":"string","description":"Type permissions the user needs to have. Possible values: CONTEXT_TYPE_WRITE or CONTEXT_TYPE_DELETE. When CONTEXT_TYPE_DELETE is provided, CONTEXT_TYPE_WRITE is automatically assumed."},"includeDeleted":{"type":"boolean","description":"Whether to include deleted types or not.","default":false},"page":{"type":"integer","format":"int32","writeOnly":true},"size":{"type":"integer","format":"int32","writeOnly":true},"sort":{"type":"array","writeOnly":true,"items":{"type":"string"}}},"description":"Represents search parameters"},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"}}},"PagedModelContextDataType":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextDataType"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"SourceSynchronizationIntervalModel":{"required":["startDate"],"type":"object","properties":{"startDate":{"type":"string","description":"The start date of the interval to sync.","format":"date-time"},"endDate":{"type":"string","description":"The end date of the interval to sync. Current date will be taken if left empty.","format":"date-time"},"cancelable":{"type":"boolean"}}},"BulkResyncByIdentifiersModel":{"required":["identifiers"],"type":"object","properties":{"identifiers":{"type":"array","description":"List of context item identifiers to be resynced.","items":{"type":"string","description":"List of context item identifiers to be resynced.","format":"uuid"}}},"description":"Represents the definition for a context item resync by identifiers action"},"BulkResyncByFiltersModel":{"required":["createdBefore","filters"],"type":"object","properties":{"filters":{"type":"array","description":"List of filters to which context items have to match to be resynced.","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}},"createdBefore":{"type":"string","description":"Date before which context items need to be created to be resync when using the filters. Will default to request date.","format":"date-time"}},"description":"Represents the definition for a context item resync by filters action"},"PropertyKeyMigrationPhaseStatusModel":{"type":"object","properties":{"waitingForApproval":{"type":"string"}}},"KeywordModel":{"required":["keyword"],"type":"object","properties":{"keyword":{"type":"string","description":"The string value representing a keyword"}}},"Keyword":{"type":"object","properties":{"keyword":{"type":"string","description":"The keyword"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a keyword definition"},"PagedModelContextItem":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextItem"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"Order":{"type":"object","properties":{"direction":{"type":"string","enum":["ASC","DESC"]},"property":{"type":"string"}}},"ReactiveSearchRequestModel":{"type":"object","properties":{"filters":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}},"version":{"type":"string","enum":["V1_0","V2_0"]},"sort":{"$ref":"#/components/schemas/Sort"},"pageSize":{"type":"integer","description":"Deprecated since version V2_0","format":"int32","deprecated":true},"delay":{"type":"integer","description":"Deprecated since version V2_0","format":"int32","deprecated":true},"limit":{"type":"integer","format":"int32"},"bufferSize":{"type":"integer","format":"int32"},"useTimeSeriesIdentifier":{"type":"boolean","description":"Boolean to indicate if Tag need to be resolved to UUIDs or not, default false","example":false},"dataSort":{"$ref":"#/components/schemas/SortObject"}},"description":"Represents a reactive search request definition"},"Sort":{"type":"object","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}}}},"SortObject":{"type":"object","properties":{"empty":{"type":"boolean"},"sorted":{"type":"boolean"},"unsorted":{"type":"boolean"}}},"MinimalContextItem":{"type":"object","properties":{"permissions":{"uniqueItems":true,"type":"array","description":"Permissions on the context data","items":{"type":"string","description":"Permissions on the context data"}},"identifier":{"type":"string","description":"The identifier of the context item"},"components":{"type":"array","description":"The component for which the context item is registered","items":{"$ref":"#/components/schemas/ContextItemComponent"}},"startEventDate":{"type":"string","description":"The date of the start event of the context item","format":"date-time"},"endEventDate":{"type":"string","description":"The date of the end event","format":"date-time"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"DataImport":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"created":{"type":"string","format":"date-time"},"createdBy":{"type":"string"},"modified":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["UPLOADED","COMPLETED","COMPLETED_WITH_ERRORS","FAILED"]},"errors":{"type":"integer","format":"int64"},"errorMessage":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/Parameter"}},"fileName":{"type":"string"},"errorsFileName":{"type":"string"}}},"Parameter":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}},"CollectionModelLinkedField":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/LinkedField"}}}},"LinkedField":{"required":["name","type"],"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the field"},"propertyKey":{"type":"string","description":"The technical identifier of the field"},"name":{"type":"string","description":"The name of the field"},"type":{"type":"string","description":"The field type, must be one of these values: STRING, NUMERIC, ENUMERATION"},"placeholder":{"type":"string","description":"The placeholder of the field, an example value for what this field's value might look like"},"options":{"type":"array","description":"The possible options of the field, only applicable when type Enumeration is chosen","items":{"type":"string","description":"The possible options of the field, only applicable when type Enumeration is chosen"}},"aggregations":{"type":"array","description":"The aggregations that are defined on this field","items":{"$ref":"#/components/schemas/AggregationOperationRepresentationModel"}},"all":{"type":"boolean","description":"Indicates whether the field is present on all or just some provided types."},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a custom field definition with an indication of usage over provided types"},"ExportModel":{"required":["type","viewIdentifier"],"type":"object","properties":{"viewIdentifier":{"type":"string","description":"The identifier of the view to be exported"},"type":{"type":"string","description":"The type of the export","enum":["CSV_COMMA_SEPARATED","CSV_SEMICOLON_SEPARATED","XLSX","ZIP","CSV_COMMA_SEPARATED,CSV_SEMICOLON_SEPARATED,XLSX"]},"timezone":{"type":"string","description":"The timezone in which to display all times","example":"Europe/Brussels"},"hostname":{"type":"string","description":"The TrendMiner hostname","example":"https://localhost.com"}},"description":"Represents an export creation definition"},"TaskSubmissionResult":{"type":"object","properties":{"running":{"type":"integer","description":"Number of tasks currently being executed.","format":"int32"},"queued":{"type":"integer","description":"Number of tasks currently queued.","format":"int32"}}},"LinkModel":{"required":["link"],"type":"object","properties":{"link":{"type":"string","description":"The requested link."},"validity":{"type":"integer","description":"Validity of the requested token, in seconds.","format":"int64","default":30}}},"DataModel":{"type":"object","properties":{"data":{"type":"string","description":"the signed link data"}}},"Approval":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the approval."},"createdDate":{"type":"string","description":"The date when the approval was given.","format":"date-time"},"createdBy":{"type":"string","description":"The approver's user id."},"userDetails":{"$ref":"#/components/schemas/UserDetails"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}}},"IdListModel":{"type":"object","properties":{"uuidList":{"type":"array","items":{"type":"string","format":"uuid"}}},"description":"Model for a List containing UUID"},"AssetModel":{"type":"object","properties":{"assets":{"uniqueItems":true,"type":"array","description":"Set of asset identifiers","items":{"type":"string","description":"Set of asset identifiers","format":"uuid"}}},"description":"Collection of assets"},"Asset":{"type":"object","properties":{"identifier":{"type":"string","description":"The asset's identifier.","format":"uuid"},"paths":{"type":"array","description":"The paths towards this asset starting from the root.","items":{"type":"string","description":"The paths towards this asset starting from the root."}},"longPaths":{"type":"array","description":"The old longer paths towards this asset starting from the root.","items":{"type":"string","description":"The old longer paths towards this asset starting from the root."}},"parentNames":{"type":"array","description":"The names of the parents, in the same order as the paths.","items":{"type":"string","description":"The names of the parents, in the same order as the paths."}},"name":{"type":"string","description":"The asset's name."},"description":{"type":"string","description":"The asset's description."},"type":{"type":"string","description":"The asset's type."},"dataType":{"type":"string","description":"The asset's data type, if the Asset is an ATTRIBUTE."},"data":{"type":"string","description":"The asset's data, if the Asset is an ATTRIBUTE. (tagName or UUID)"},"timeSeriesDefinition":{"$ref":"#/components/schemas/TimeSeriesDefinitionRepresentation"},"deleted":{"type":"boolean","description":"Indication whether this asset is deleted or not."},"externalId":{"type":"string","description":"The asset's identifier in the external system."},"template":{"type":"string","description":"The asset's template."},"templateId":{"type":"string","description":"The asset's template identifier."},"source":{"$ref":"#/components/schemas/Source"},"permissions":{"type":"array","description":"The asset's permissions.","items":{"type":"string","description":"The asset's permissions.","enum":["ASSET_NO_PERMISSIONS","ASSET_BROWSE","ASSET_READ_CONTEXT_ITEM"]}},"createdDate":{"type":"string","description":"The asset's creation date","format":"date-time"},"lastModifiedDate":{"type":"string","description":"The asset's last modified date","format":"date-time"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents an asset"},"AssetType":{"type":"object","properties":{"types":{"$ref":"#/components/schemas/PagedModelContextDataType"},"inheritance":{"type":"string","description":"Inheritance type of the rule.","enum":["ALL","SELF","INHERITED"]},"inherited":{"type":"array","description":"Assets of which the rules were inherited","items":{"$ref":"#/components/schemas/Asset"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a mapping between types and their allowed assets"},"TimeSeriesDefinitionRepresentation":{"type":"object","properties":{"datasourceId":{"type":"string","format":"uuid"},"ownerId":{"type":"string"},"externalId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"units":{"type":"string"},"interpolationType":{"type":"string"},"datasourceType":{"type":"string"},"deleted":{"type":"boolean"},"plotDataUrl":{"type":"string"},"indexDataUrl":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"id":{"type":"string","format":"uuid"}},"description":"TimeSeries definition to which the data points. Can be empty, even if data is present."},"PagedModelWorkflow":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Workflow"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelString":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"type":"string"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"ContextView":{"type":"object","properties":{"description":{"type":"string"},"folder":{"type":"boolean"},"identifier":{"type":"string"},"lastModifiedDate":{"type":"string","format":"date-time"},"name":{"type":"string"},"owner":{"type":"string"},"ownerUuid":{"type":"string"},"shared":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ContextViewData"},"permissions":{"type":"array","items":{"type":"string"}},"parentId":{"type":"string"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a context view definition"},"ContextViewData":{"type":"object","properties":{"filters":{"type":"array","description":"List of filters","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}},"viewType":{"type":"string","description":"Type of the view (frontend related"},"ganttSettings":{"type":"object","description":"Settings for the gantt view (frontend related)"},"scatterSettings":{"type":"object","description":"Scatter settings"},"gridSettings":{"type":"object","description":"Grid settings"}}},"PagedModelTriggerDefinition":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/TriggerDefinition"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"Availability":{"type":"object","properties":{"available":{"type":"boolean","description":"True if the context item type is present in the source system"}}},"FailedEventFrameSynchronization":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the failed event frame synchronization","format":"uuid"},"source":{"$ref":"#/components/schemas/Source"},"externalId":{"type":"string","description":"The identifier of the event frame in the source system"},"failureDate":{"type":"string","description":"The date when the failure of syncing occurred","format":"date-time"},"exceptionMessage":{"type":"string","description":"The failure's exception message"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents a source and its synchronization status"},"PagedModelFailedEventFrameSynchronization":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/FailedEventFrameSynchronization"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelBackgroundSyncJobRepresentationModel":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/BackgroundSyncJobRepresentationModel"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelSource":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Source"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"FieldFilter":{"type":"object","properties":{"type":{"type":"string","writeOnly":true,"enum":["INTERVAL_FILTER","LIVE_INTERVAL_FILTER","PERIOD_FILTER","COMPONENT_FILTER","TYPE_FILTER","KEYWORD_FILTER","STRING_FIELD_FILTER","ENUMERATION_FIELD_FILTER","NUMERIC_FIELD_FILTER","PROPERTY_FIELD_FILTER","CREATED_BY_FILTER","DESCRIPTION_FILTER","DURATION_FILTER","APPROVAL_FILTER","CURRENT_STATE_FILTER","CREATED_DATE_FILTER","EXTERNAL_SOURCE_FILTER"]},"valid":{"type":"boolean","readOnly":true},"validationResultMessages":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/ValidationResultMessage"}},"fieldIdentifier":{"type":"string","format":"uuid"},"field":{"type":"string"},"order":{"type":"integer","format":"int32"}}},"PagedModelPropertyKeyMigrationViewData":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationViewData"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PropertyKeyMigrationField":{"type":"object","properties":{"original":{"type":"string"},"migrated":{"type":"string"}}},"PropertyKeyMigrationFieldFilter":{"type":"object","properties":{"original":{"$ref":"#/components/schemas/FieldFilter"},"migrated":{"$ref":"#/components/schemas/FieldFilter"}}},"PropertyKeyMigrationPropertyFieldFilter":{"type":"object","properties":{"original":{"$ref":"#/components/schemas/PropertyFieldFilter"},"migrated":{"$ref":"#/components/schemas/PropertyFieldFilter"}}},"PropertyKeyMigrationViewData":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"viewIdentifier":{"type":"string"},"viewOwner":{"type":"string"},"viewOwnerIdentifier":{"type":"string"},"viewOwnerDetails":{"$ref":"#/components/schemas/UserDetails"},"viewName":{"type":"string"},"fieldFilters":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationFieldFilter"}},"propertyFilters":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationPropertyFieldFilter"}},"ganttGroupBy":{"$ref":"#/components/schemas/PropertyKeyMigrationField"},"ambiguous":{"type":"boolean"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents the changes to be performed on a view"},"PropertyKeyMigrationPhaseRepresentationModel":{"type":"object","properties":{"startDate":{"type":"string","format":"date-time"},"endDate":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["WAITING","RUNNING","FINISHED","FAILED","SKIPPED"]}}},"PropertyKeyMigrationStatusRepresentationModel":{"type":"object","properties":{"dryRun":{"$ref":"#/components/schemas/PropertyKeyMigrationPhaseRepresentationModel"},"waitingForApproval":{"$ref":"#/components/schemas/PropertyKeyMigrationPhaseRepresentationModel"}}},"PagedModelPropertyKeyMigrationMonitorData":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationMonitorData"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PropertyKeyMigrationMonitorData":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"monitorIdentifier":{"type":"string"},"monitorOwner":{"type":"string"},"monitorOwnerIdentifier":{"type":"string"},"monitorName":{"type":"string"},"monitorOwnerDetails":{"$ref":"#/components/schemas/UserDetails"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationField"}},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents the changes to be performed on a monitor"},"PagedModelPropertyKeyMigrationFieldData":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/PropertyKeyMigrationFieldData"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PropertyKeyMigrationFieldData":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"name":{"type":"string"},"type":{"type":"string"},"propertyKey":{"type":"string"},"migratedKey":{"type":"string"},"ambiguous":{"type":"boolean"},"createdByDetails":{"$ref":"#/components/schemas/UserDetails"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents the changes to be performed on a field"},"FieldUniquenessRepresentationModel":{"type":"object","properties":{"unique":{"type":"boolean"}}},"PagedModelKeyword":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Keyword"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"Pageable":{"type":"object","properties":{"page":{"minimum":0,"type":"integer","format":"int32"},"size":{"minimum":1,"type":"integer","format":"int32"},"sort":{"type":"array","items":{"type":"string"}}}},"PageDataImport":{"type":"object","properties":{"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"pageable":{"$ref":"#/components/schemas/PageableObject"},"size":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"$ref":"#/components/schemas/DataImport"}},"number":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/SortObject"},"first":{"type":"boolean"},"last":{"type":"boolean"},"numberOfElements":{"type":"integer","format":"int32"},"empty":{"type":"boolean"}}},"PageableObject":{"type":"object","properties":{"offset":{"type":"integer","format":"int64"},"sort":{"$ref":"#/components/schemas/SortObject"},"pageSize":{"type":"integer","format":"int32"},"pageNumber":{"type":"integer","format":"int32"},"unpaged":{"type":"boolean"},"paged":{"type":"boolean"}}},"AuditTrail":{"type":"object","properties":{"identifier":{"type":"string","description":"The identifier of the audit trail"},"contextDataIdentifier":{"type":"string","description":"The identifier of the context item"},"changedItemIdentifier":{"type":"string","description":"The identifier of the changed entity"},"changedItemType":{"type":"string","description":"The type of the changed entity"},"changedDate":{"type":"string","description":"The date at which the changes occurred","format":"date-time"},"changedBy":{"type":"string","description":"The identifier of the user who made the changes"},"action":{"type":"string","description":"The action performed"},"changes":{"type":"array","description":"The changes","items":{"type":"object","additionalProperties":{"type":"object","description":"The changes"},"description":"The changes"}},"userDetails":{"$ref":"#/components/schemas/UserDetails"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents an audit trail definition"},"PagedModelAuditTrail":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/AuditTrail"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelField":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Field"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"Export":{"type":"object","properties":{"identifier":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["CSV_COMMA_SEPARATED","CSV_SEMICOLON_SEPARATED","XLSX","ZIP"]},"downloadName":{"type":"string"},"createdBy":{"type":"string"},"createdDate":{"type":"string","format":"date-time"},"lastDownloadDate":{"type":"string","format":"date-time"},"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}}},"description":"Represents an export"},"PagedModelExport":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Export"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelContextData":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextData"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelDataReference":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/DataReference"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelContextEvent":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/ContextEvent"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelComment":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelAttachment":{"type":"object","properties":{"links":{"type":"array","items":{"$ref":"#/components/schemas/Link"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"BulkDeleteByIdentifiersModel":{"required":["identifiers"],"type":"object","properties":{"identifiers":{"type":"array","description":"List of context item identifiers to be deleted. Mutually exclusive with the other fields.","items":{"type":"string","description":"List of context item identifiers to be deleted. Mutually exclusive with the other fields.","format":"uuid"}}},"description":"Represents the definition for a context item bulk delete by identifiers action"},"BulkDeleteResult":{"type":"object","properties":{"deleted":{"type":"integer","description":"The number of deleted context items.","format":"int32"},"remaining":{"type":"integer","description":"The number of remaining context item created before the provided date.","format":"int32"}},"description":"Represents the result of a bulk delete action."},"BulkDeleteByFiltersModel":{"required":["createdBefore","filters"],"type":"object","properties":{"filters":{"type":"array","description":"List of filters to which context items have to match to be deleted. Mutually exclusive with identifiers field.","items":{"oneOf":[{"$ref":"#/components/schemas/ApprovalFilter"},{"$ref":"#/components/schemas/ComponentFilter"},{"$ref":"#/components/schemas/CreatedByFilter"},{"$ref":"#/components/schemas/CreatedDateFilter"},{"$ref":"#/components/schemas/CurrentStateFilter"},{"$ref":"#/components/schemas/DescriptionFilter"},{"$ref":"#/components/schemas/DurationFilter"},{"$ref":"#/components/schemas/EnumerationFieldFilter"},{"$ref":"#/components/schemas/ExternalSourceFilter"},{"$ref":"#/components/schemas/IntervalFilter"},{"$ref":"#/components/schemas/KeywordFilter"},{"$ref":"#/components/schemas/LiveIntervalFilter"},{"$ref":"#/components/schemas/NumericFieldFilter"},{"$ref":"#/components/schemas/PeriodFilter"},{"$ref":"#/components/schemas/PropertyFieldFilter"},{"$ref":"#/components/schemas/StringFieldFilter"},{"$ref":"#/components/schemas/TypeFilter"}]}},"createdBefore":{"type":"string","description":"Date before which context items need to be created to be deleted when using the filters. Mutually exclusive with identifiers field. Will default to request date.","format":"date-time"}},"description":"Represents the definition for a context item bulk delete by filters action"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"},"openIdConnect":{"type":"openIdConnect","openIdConnectUrl":"https://tm-toggles-next.trendminer.net/auth/realms/trendminer/.well-known/openid-configuration"}}}}