components:
    examples: {}
    headers: {}
    parameters: {}
    requestBodies: {}
    responses: {}
    schemas:
        UserInfo:
            properties:
                userName:
                    type: string
                role:
                    type: string
                isSubtenant:
                    type: boolean
            required:
                - userName
                - role
                - isSubtenant
            type: object
            additionalProperties: false
            example:
                role: 'mdsp:core:oi.wom.creator'
                userName: test@test.com
                isSubtenant: false
        VersionInfo:
            properties:
                version:
                    type: string
            required:
                - version
            type: object
            additionalProperties: false
            example:
                version: 3.5.0
        PageResponse:
            description: "\r\nDetails related to pagination"
            properties:
                size:
                    type: number
                    format: double
                    default: '1000'
                    maximum: 1000
                totalElements:
                    type: number
                    format: double
                totalPages:
                    type: number
                    format: double
                number:
                    type: number
                    format: double
            type: object
            additionalProperties: false
            example:
                number: 0
                size: 1000
                totalElements: 1
                totalPages: 1
        ActivitiesPageResponse:
            description: "\r\nDetails related to activities or comments pagination."
            properties:
                size:
                    type: number
                    format: double
                    default: '100'
                    maximum: 100
                totalElements:
                    type: number
                    format: double
                totalPages:
                    type: number
                    format: double
                number:
                    type: number
                    format: double
            type: object
            additionalProperties: false
            example:
                number: 0
                size: 100
                totalElements: 1
                totalPages: 1
        PriorityEnum:
            description: 'Priority of case; example: LOW,MEDIUM,HIGH,EMERGENCY'
            enum:
                - EMERGENCY
                - MEDIUM
                - HIGH
                - LOW
            type: string
        StatusEnum:
            description: 'Status of case; example: OPEN,INPROGRESS,ONHOLD,DONE,CANCELLED,ARCHIVED'
            enum:
                - OPEN
                - INPROGRESS
                - ONHOLD
                - DONE
                - OVERDUE
                - CANCELLED
                - ARCHIVED
            type: string
        TypeEnum:
            description: "Type of case\r\nis it planned or incident or annotation"
            enum:
                - PLANNED
                - INCIDENT
                - ANNOTATION
            type: string
        CaseSummaryResponse:
            description: "\r\nResponse body for GET case"
            properties:
                assignedTo:
                    type: string
                    description: "Email id of tenant user;\r\nexample: test@test.com"
                description:
                    type: string
                    description: 'Description may include details about what needs to be done as part of this case'
                    maxLength: 2500
                priority:
                    $ref: '#/components/schemas/PriorityEnum'
                status:
                    $ref: '#/components/schemas/StatusEnum'
                type:
                    $ref: '#/components/schemas/TypeEnum'
                notifyAssignee:
                    type: boolean
                    description: 'If set to true email is sent to assignee'
                    default: false
                dueDate:
                    type: string
                    format: 'YYYY-MM-DD'
                source:
                    type: string
                    description: 'Name of the source initiating case creation'
                title:
                    type: string
                handle:
                    type: string
                createdBy:
                    type: string
                createdDate:
                    type: string
                    format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
                eTag:
                    type: string
                modifiedBy:
                    type: string
                modifiedDate:
                    type: string
                    format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
                overdue:
                    type: boolean
            type: object
            additionalProperties: false
            example:
                handle: AA-000
                dueDate: '2021-11-25'
                notifyAssignee: false
                title: 'test WOM 1'
                type: PLANNED
                status: OPEN
                assignedTo: null
                description: 'test wom'
                source: 'AHM'
                priority: LOW
                createdBy: test@test.com
                createdDate: '2023-08-10T03:52:14.301Z'
                eTag: '1702540787672'
                modifiedBy: test@test.com
                modifiedDate: '2023-08-10T03:52:14.301Z'
                overdue: true
        CaseActivitiesSummaryResponse:
            description: "\r\nResponse body for GET cases activities"
            properties:
                id:
                  type: string
                  format: UUID
                  description: 'Unique identification of activity'
                source:
                  type: string
                  description: 'Name of the source operating the particular case'
                handle:
                  type: string
                operation:
                  $ref: '#/components/schemas/CaseOperationEnum'
                entity:
                  $ref: '#/components/schemas/CaseActivityTypeEnum'
                entityId:
                  type: string
                  description: 'Entity identity'
                changes:
                  description: 'List of changes performed on case'
                  items:
                    $ref: '#/components/schemas/CaseChangesResponse'
                  type: array
                initiator:
                    type: string
                    description: "Email id of tenant user;\r\nexample: test@test.com"
                timestamp:
                    type: string
                    format: timestamp in UTC
                    description: 'When activity is logged'
            type: object
            additionalProperties: false
            example:
                id: 8d63bb7b-d66e-4424-84b2-c673c902e7f7
                source: 'AHM'
                handle: AA-000
                operation: UPDATE
                entity: CASE
                entityId: AA-000
                changes:
                  - valueType: STATUS
                    newValue: OPEN
                    oldValue: DONE
                  - valueType: assignedTo
                    newValue: test1@test.com
                    oldValue: test@test.com
                initiator: test@test.com
                timestamp: '2023-12-01T05:52:14.301Z'
        CaseTagsRequestDTO:
            description: "\r\nRequest body for patching the cases tags"
            properties:
                tags:
                  description: 'List of tags on case'
                  items:
                    $ref: '#/components/schemas/CaseTags'
                  type: array
                  maxItems: 8
            type: object
            additionalProperties: false
            example:
                tags:
                  - category: Quality
                    value: Material Issue
        CaseCommentsRequestDTO:
            description: "\r\nRequest body for POST cases comment"
            properties:
                isActive:
                  type: boolean
                  description: State of comment whether it's active or not.
                isResolution:
                  type: boolean
                  default: false
                  description: Type of comment whether it's case resolution comment or not.
                isFeedback:
                  type: boolean
                  default: false
                  description: Type of comment whether it's case feedback or not.
                description:
                  type: string
                  maxLength: 5000
            type: object
            additionalProperties: false
            example:
                isActive: true
                isResolution: false
                isFeedback: false
                description: test comment
        CaseCommentsResponse:
            description: "\r\nResponse body for GET cases comments"
            properties:
                id:
                  type: string
                  format: UUID
                  description: 'Unique identification of comment'
                source:
                  type: string
                  description: 'Name of the source operating the particular case'
                handle:
                  type: string
                isActive:
                  type: boolean
                  description: State of comment whether it's active or not.
                isResolution:
                  type: boolean
                  default: false
                  description: Type of comment whether it's case resolution comment or not.
                isFeedback:
                  type: boolean
                  default: false
                  description: Type of comment whether it's case feedback or not.
                description:
                  type: string
                  maxLength: 5000
                createdBy:
                  type: string
                createdDate:
                  type: string
                  format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
                eTag:
                  type: string
                modifiedBy:
                  type: string
                modifiedDate:
                  type: string
                  format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
            type: object
            additionalProperties: false
            example:
                id: 8d63bb7b-d66e-4424-84b2-c673c902e7f7
                source: 'AHM'
                handle: AA-000
                isActive: true
                isResolution: false
                isFeedback: false
                description: test comment
                createdBy: test@test.com
                createdDate: '2023-08-10T03:52:14.301Z'
                eTag: '1702540787672'
                modifiedBy: test@test.com
                modifiedDate: '2023-08-10T03:52:14.301Z'
        CaseTags:
            description: "\r\ncase tag"
            properties:
                category:
                    type: string
                    description: "Tag category of this case"
                    maxLength: 128
                value:
                    type: string
                    description: "Tag value on case for corresponding category"
                    maxLength: 128
            type: object
            additionalProperties: false
        CaseListResponse:
            description: "Response for get multiple cases\r\n\r\nMaximum 1000 cases for a tenant are allowed to be returned."
            properties:
                page:
                    $ref: '#/components/schemas/PageResponse'
                cases:
                    items:
                        $ref: '#/components/schemas/CaseSummaryResponse'
                    type: array
                    maxItems: 1000
            type: object
            additionalProperties: false
        CaseActivitiesListResponse:
            description: "Response for get list of cases activities \r\n\r\nMaximum 100 cases activities for a tenant are allowed to be returned."
            properties:
                page:
                    $ref: '#/components/schemas/ActivitiesPageResponse'
                activities:
                    items:
                        $ref: '#/components/schemas/CaseActivitiesSummaryResponse'
                    type: array
                    maxItems: 100
            type: object
            additionalProperties: false
        CaseCommentsListResponse:
            description: "Response for get list of cases comments \r\n\r\nMaximum 100 cases comments for a tenant are allowed to be returned."
            properties:
                page:
                    $ref: '#/components/schemas/ActivitiesPageResponse'
                comments:
                    items:
                        $ref: '#/components/schemas/CaseCommentsResponse'
                    type: array
                    maxItems: 100
            type: object
            additionalProperties: false
        CaseResponseStatus:
            properties:
                message:
                    type: string
                logref:
                    type: string
                handle:
                    type: string
                compKey:
                    type: string
                code:
                    type: string
            type: object
            additionalProperties: false
        CaseSuccessResponseStatus:
            properties:
                message:
                    type: string
                handle:
                    type: string
                eTag:
                    type: string
            type: object
            additionalProperties: false
            example:
                message: 'case created/updated/deleted with case-handle AA-000'
                handle: AA-000
                eTag: '1702540787672'
        CounterInfo:
            properties:
                count:
                    type: number
                    format: double
                fieldName:
                    type: string
            type: object
            additionalProperties: false
        SeverityByStatus:
            description: "\r\nGet count of cases by statues and severity\r\nWhen aggregate=true"
            properties:
                overview:
                    properties:
                        OPEN:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        INPROGRESS:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        ONHOLD:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        DONE:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        OVERDUE:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        CANCELLED:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                        ARCHIVED:
                            properties:
                                LOW:
                                    $ref: '#/components/schemas/CounterInfo'
                                HIGH:
                                    $ref: '#/components/schemas/CounterInfo'
                                MEDIUM:
                                    $ref: '#/components/schemas/CounterInfo'
                                EMERGENCY:
                                    $ref: '#/components/schemas/CounterInfo'
                            required:
                                - LOW
                                - HIGH
                                - MEDIUM
                                - EMERGENCY
                            type: object
                    type: object
            type: object
            additionalProperties: false
        CaseAggregateResponse:
            description: 'Response for aggregate cases'
            properties:
                priorityInfo:
                    properties:
                        EMERGENCY:
                            $ref: '#/components/schemas/CounterInfo'
                        MEDIUM:
                            $ref: '#/components/schemas/CounterInfo'
                        HIGH:
                            $ref: '#/components/schemas/CounterInfo'
                        LOW:
                            $ref: '#/components/schemas/CounterInfo'
                    type: object
                    description: 'Count of cases by priority'
                statusInfo:
                    properties:
                        OPEN:
                            $ref: '#/components/schemas/CounterInfo'
                        INPROGRESS:
                            $ref: '#/components/schemas/CounterInfo'
                        ONHOLD:
                            $ref: '#/components/schemas/CounterInfo'
                        DONE:
                            $ref: '#/components/schemas/CounterInfo'
                        OVERDUE:
                            $ref: '#/components/schemas/CounterInfo'
                        CANCELLED:
                            $ref: '#/components/schemas/CounterInfo'
                        ARCHIVED:
                            $ref: '#/components/schemas/CounterInfo'
                    type: object
                    description: 'Count of cases by status'
                severityByStatus:
                    $ref: '#/components/schemas/SeverityByStatus'
                totalCases:
                    type: number
                    format: double
            type: object
            additionalProperties: false
        Attachment:
            properties:
                name:
                    type: string
                assetId:
                    type: string
                path:
                    type: string
                url:
                    type: string
            type: object
            additionalProperties: false
        MetaData:
            description: 'It will hold dates properties.'
            properties:
                activationDate:
                    type: string
                completedDate:
                    type: string
            type: object
            additionalProperties: true
        ExternalSystems:
          items:
            $ref: '#/components/schemas/ExternalSystemDTO'
          type: array
          description: 'List of external system attached to case'
          maxItems: 10
        ExternalSystemDTO:
          description: 'It will hold external systems properties.'
          properties:
              type:
                type: string
                description: Type of external system i.e. source or destination
              name:
                type: string
                description: Name of external system
              entityId:
                type: string
                description: External system generated identity
              link:
                type: string
                description: External system link
              metadata:
                type: object
                description: System specific properties
          required:
              - type
              - name
              - entityId
              - link
              - metadata
          type: object
        AssociationTypeEnum:
            enum:
                - ASSET
                - EVENT
            type: string
        Association:
            properties:
                id:
                    type: string
                type:
                    $ref: '#/components/schemas/AssociationTypeEnum'
            type: object
            additionalProperties: false
        CaseResponse:
            description: "\r\nResponse body for GET case"
            properties:
                assignedTo:
                    type: string
                    description: "Email id of tenant user;\r\nexample: test@test.com"
                description:
                    type: string
                    description: 'Description may include details about what needs to be done as part of this case'
                    maxLength: 10000
                priority:
                    $ref: '#/components/schemas/PriorityEnum'
                status:
                    $ref: '#/components/schemas/StatusEnum'
                type:
                    $ref: '#/components/schemas/TypeEnum'
                notifyAssignee:
                    type: boolean
                    description: 'If set to true email is sent to assignee'
                    default: false
                attachments:
                    items:
                        $ref: '#/components/schemas/Attachment'
                    type: array
                associations:
                    items:
                        $ref: '#/components/schemas/Association'
                    type: array
                dueDate:
                    type: string
                    format: 'YYYY-MM-DD'
                source:
                    type: string
                    description: 'Name of the source initiating case creation'
                title:
                    type: string
                handle:
                    type: string
                createdBy:
                    type: string
                createdDate:
                    type: string
                    format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
                eTag:
                    type: string
                modifiedBy:
                    type: string
                modifiedDate:
                    type: string
                    format: 'YYYY-MM-DDTHH:mm:ss.SSSZ'
                overdue:
                    type: boolean
                metadata:
                    $ref: '#/components/schemas/MetaData'
                externalSystems:
                    items:
                        $ref: '#/components/schemas/ExternalSystems'
                    type: array
                tags:
                   description: 'List of tags on case'
                   items:
                     $ref: '#/components/schemas/CaseTags'
                   type: array
            type: object
            additionalProperties: false
            example:
                handle: AA-000
                dueDate: '2021-11-25'
                notifyAssignee: false
                title: 'test case 1'
                type: PLANNED
                status: OPEN
                assignedTo: null
                attachments: []
                associations: []
                description: 'test case'
                source: 'AHM'
                priority: LOW
                createdBy: test@test.com
                createdDate: '2021-11-25T03:52:14.301Z'
                eTag: '1702540787672'
                modifiedBy: test@test.com
                modifiedDate: '2021-11-25T03:52:14.301Z'
                overdue: true
                metadata: 
                  activationDate: '2023-08-25'
                  completedDate: '2023-09-25'
                externalSystems:
                  -
                      name: Senseye
                      type: source
                      entityId: 67f8e302-b1eb-48b9-9074-292115b2837e
                      link: 'https://xyz.io/cases/67f8e302-b1eb-48b9-9074-292115b2837e'
                      metadata:
                          sensorId: c03fcfe4-31a4-46b1-9ae5-6b6a459a3c90
                  -
                      name: SAP
                      type: destination
                      entityId: '98284'
                      link: 'https://abc.com/path?agent=TAB'
                      metadata:
                        latestReasonPhrase: OK
                        latestStatusCode: '201'
                        latestErrorMessage: ''
                        friendlyNameFsm: ABC
                        remarks: 15:23 Test
                tags:
                  - category: Quality
                    value: Material Issue
        CaseChangesResponse:
            description: "\r\ncase change"
            properties:
                valueType:
                    type: string
                    description: "Type of value changed on case"
                newValue:
                    type: string
                    description: "New value changed on case for corresponding valueType"
                oldValue:
                    type: string
                    description: "Old value changed on case for corresponding valueType"
            type: object
            additionalProperties: false
        CaseOperationEnum:
            enum:
                - INSERT
                - UPDATE
                - DELETE
            type: string
            description: 'Kind of action performed on case, i.e. either insert / update / delete'
        CaseActivityTypeEnum:
            enum:
                - CASE
                - COMMENT
            type: string
            description: 'Entity name to log activity performed on that entityId, i.e. either insert / update / delete'
        AttachmentDTO:
            description: "Files can be attached to cases\r\nFiles uploaded to IOT file services are accepted here\r\ne.g. https://gateway.eu1.mindsphere.io/api/iotfile/v3/files/cb72dfd7400e4fc6a275f22e6751cce6/AA-019/file.pdf"
            properties:
                name:
                    type: string
                    description: "name of the file to be attached\r\ne,g, file.pdf"
                assetId:
                    type: string
                    description: "Asset to which file was uploaded\r\ne.g. cb72dfd7400e4fc6a275f22e6751cce6"
                path:
                    type: string
                    description: "Path to file\r\ne.g. AA-019"
            required:
                - name
                - assetId
                - path
            type: object
            additionalProperties: false
        AssociationDTO:
            description: 'Association is object holds information about the entity associated to case e.g. ASSETs or EVENTs. Maximum one asset and 10 events can be attached per case.'
            properties:
                id:
                    type: string
                    description: 'ID of entity to be associated e.g. assetId'
                type:
                    $ref: '#/components/schemas/AssociationTypeEnum'
                    description: 'Type of entity to be associated e.g. ASSET'
            required:
                - id
                - type
            type: object
            additionalProperties: false
        CaseRequestDTO:
            description: 'Request body to create/update a case'
            properties:
                assignedTo:
                    type: string
                    description: "Email id of tenant user;\r\nexample: test@test.com"
                attachments:
                    items:
                        $ref: '#/components/schemas/AttachmentDTO'
                    type: array
                    description: 'List of files attached to case'
                    maxItems: 10
                associations:
                    items:
                        $ref: '#/components/schemas/AssociationDTO'
                    type: array
                    description: 'List of associated entities with case'
                    maxItems: 11
                description:
                    type: string
                    description: 'Description may include details about what needs to be done as part of this case'
                    maxLength: 10000
                source:
                    type: string
                    description: 'Name of the source initiating case creation'
                dueDate:
                    type: string
                    description: 'Due date by which this case needs to be addressed'
                priority:
                    $ref: '#/components/schemas/PriorityEnum'
                status:
                    $ref: '#/components/schemas/StatusEnum'
                title:
                    type: string
                    description: 'Short title of activity to be performed as part of case; example: Fuel Check'
                type:
                    $ref: '#/components/schemas/TypeEnum'
                notifyAssignee:
                    type: boolean
                    description: 'If set to true email is sent to assignee'
                    default: false
                metadata:
                    $ref: '#/components/schemas/MetaData'
                externalSystems:
                    items:
                        $ref: '#/components/schemas/ExternalSystems'
                    type: array
                tags:
                  description: 'List of tags on case'
                  items:
                    $ref: '#/components/schemas/CaseTags'
                  type: array
                  maxItems: 8
            required:
                - dueDate
                - title
            type: object
            additionalProperties: false
            example:
                notifyAssignee: false
                dueDate: '2021-11-25'
                title: 'test WOM 1'
                assignedTo: null
                priority: LOW
                status: OPEN
                type: PLANNED
                description: 'test wom'
                source: 'AHM'
                attachments:
                    -
                        name: iris.csv
                        assetId: cb72dfd7400e4fc6a275f22e6751cce6
                        path: 'AA-019/2021-11-26T04:27:15.933Z'
                associations:
                    -
                        id: cb72dfd7400e4fc6a275f22e6751cce6
                        type: ASSET
                metadata: 
                  activationDate: '2023-08-25'
                  completedDate: '2023-09-25'
                externalSystems:
                  -
                      name: Senseye
                      type: source
                      entityId: 67f8e302-b1eb-48b9-9074-292115b2837e
                      link: 'https://xyz.io/cases/67f8e302-b1eb-48b9-9074-292115b2837e'
                      metadata:
                          sensorId: c03fcfe4-31a4-46b1-9ae5-6b6a459a3c90
                  -
                      name: SAP
                      type: destination
                      entityId: '98284'
                      link: 'https://abc.com/path?agent=TAB'
                      metadata:
                        latestReasonPhrase: OK
                        latestStatusCode: '201'
                        latestErrorMessage: ''
                        friendlyNameFsm: ABC
                        remarks: 15:23 Test
                tags:
                  - category: Quality
                    value: Material Issue
        CasePatchRequestDTO:
            description: 'Request body to update a case'
            properties:
                assignedTo:
                    type: string
                    description: "Email id of tenant user;\r\nexample: test@test.com"
                description:
                    type: string
                    description: 'Description may include details about what needs to be done as part of this case'
                    maxLength: 10000
                dueDate:
                    type: string
                    description: 'Due date by which this case needs to be addressed'
                priority:
                    $ref: '#/components/schemas/PriorityEnum'
                status:
                    $ref: '#/components/schemas/StatusEnum'
                title:
                    type: string
                    description: 'Short title of activity to be performed as part of case; example: Fuel Check'
                notifyAssignee:
                    type: boolean
                    description: 'If set to true email is sent to assignee'
                    default: false
            type: object
            additionalProperties: false
            example:
                notifyAssignee: false
                dueDate: '2021-11-25'
                title: 'test WOM 1'
                assignedTo: null
                priority: LOW
                status: OPEN
                description: 'test wom'
        AttachmentsRequestDTO:
            description: "\r\nRequest body for partial update of attachments"
            properties:
                attachments:
                    items:
                        $ref: '#/components/schemas/AttachmentDTO'
                    type: array
            required:
                - attachments
            type: object
            additionalProperties: false
            example:
                attachments:
                    -
                        name: iris.csv
                        assetId: cb72dfd7400e4fc6a275f22e6751cce6
                        path: 'AA-019/2021-11-26T04:27:15.933Z'
        AssociationsRequestDTO:
            description: 'Request body for partial update of associations'
            properties:
                associations:
                    items:
                        $ref: '#/components/schemas/AssociationDTO'
                    type: array
            required:
                - associations
            type: object
            additionalProperties: false
            example:
                associations:
                    -
                        id: cb72dfd7400e4fc6a275f22e6751cce6
                        type: ASSET
        ExternalSystemsRequestDTO:
            description: 'Request body for partial update of externalSystems'
            properties:
                externalSystems:
                    items:
                        $ref: '#/components/schemas/ExternalSystemDTO'
                    type: array
            required:
                - externalSystems
            type: object
            additionalProperties: false
            example:
              externalSystems:
                  -
                      name: Senseye
                      type: source
                      entityId: 67f8e302-b1eb-48b9-9074-292115b2837e
                      link: 'https://xyz.io/cases/67f8e302-b1eb-48b9-9074-292115b2837e'
                      metadata:
                          sensorId: c03fcfe4-31a4-46b1-9ae5-6b6a459a3c90
                  -
                      name: SAP
                      type: destination
                      entityId: '98284'
                      link: 'https://abc.com/path?agent=TAB'
                      metadata:
                        latestReasonPhrase: OK
                        latestStatusCode: '201'
                        latestErrorMessage: ''
                        friendlyNameFsm: ABC
                        remarks: 15:23 Test
        TagsRequestDTO:
            description: 'Request body for partial update of tags'
            properties:
                tags:
                    items:
                        $ref: '#/components/schemas/CaseTagsRequestDTO'
                    type: array
                    maxItems: 8
            required:
                - tags
            type: object
            additionalProperties: false
            example:
                tags:
                    -
                        category: Quality
                        value: Material Issue
    securitySchemes:
        oi.wom:
            type: oauth2
            flows:
                authorizationCode:
                    authorizationUrl: 'https://1000001700.eu1.sws.siemens.com/oauth/authorize'
                    tokenUrl: 'https://1000001700.eu1.sws.siemens.com/oauth/token'
                    scopes:
                        oi.wom.c: 'Grant user a permission to create case information'
                        oi.wom.r: 'Grant user a permission to read case information'
                        oi.wom.u: 'Grant user a permission to update case information'
                        oi.wom.d: 'Grant user a permission to delete case information'
info:
    title: 'Case Management API'
    version: 3.5.2
    x-visibility: external
    description: "case solution building block provides a workflow for maintenance, repair, inspection and incident handling requests.\n\nThis workflow would enable user to\n\n - Digitalize preventive maintenance - cases for planned maintenance requests (insights from condition monitoring, prescribed by manufacturer, dictated by performance, required by policies)\n - Digitalize corrective maintenance - cases for incident handling and repair requests (alerts from condition monitoring, observations)\n - Digitalize compliance to regulations - Audit of inspection records\n - Improve work request coordination leading to improvement in productivity\n - Improve work request efficiency - right information at right place at right time\ncase solution building block would enable user by allowing to create, monitor and update cases in multiple ways."
    contact: {}
openapi: 3.0.3
paths:
    /cases:
        get:
            operationId: GetWomList
            responses:
                '200':
                    description: Ok
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseListResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves the list of cases for the tenant.'
            summary: 'Get list of cases'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
            - name: page
              in: query
              description: Any particular page number to be looked upon.
              schema:
                type: integer
                format: int32
                default: 0
            - name: size
              in: query
              description: Number of objects in single response page.
              schema:
                type: integer
                format: int32
                default: 15
                maximum: 200
            - name: sort
              in: query
              description: Any particular field on which response to be sorted in ascending
                or descending order.
              schema:
                type: string
                default: createdDate:desc
            - name: filter
              in: query
              description: Specifies the additional filtering criteria. E.g. {"associations":[{"type":"EVENT","id":"c72d22e6751cce6"}]}. Supported operators are like, notLike, in, notIn, between, notBetween, startsWith, endsWith, gt, gte, lt, lte.
              schema: {}
            - name: includeAdditionalProperties
              in: query
              example: tags, associations, metadata, externalSystems
              description: List of fields to be returned additionally in response.
              schema: {}
        post:
            operationId: CreateWom
            responses:
                '201':
                    description: Created
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseSuccessResponseStatus'
                '206':
                    description: 'Notification Failed'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Notification delivery failed', code: mdsp.core.case.notificationDeliveryFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-000}
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '402':
                    description: 'Limit Exceeded'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case limit exceeded.', code: mdsp.core.case.limitExceeded, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Create case for the tenant'
            summary: 'Create case'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters: []
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CaseRequestDTO'
    /cases/activities:
        get:
            operationId: GetWomActivitiesList
            responses:
                '200':
                    description: Ok
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseActivitiesListResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves the list of activities on cases for the tenant.'
            summary: 'Get list of cases activities'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
            - name: page
              in: query
              description: Any particular page number to be looked upon.
              schema:
                type: integer
                format: int32
                default: 0
            - name: size
              in: query
              description: Number of objects in single response page.
              schema:
                type: integer
                format: int32
                default: 15
                maximum: 100
            - name: sort
              in: query
              description: Any particular field on which response to be sorted in ascending
                or descending order.
              schema:
                type: string
                default: timestamp:desc
            - name: filter
              in: query
              description: Specifies the additional filtering criteria. E.g. {"handle":["AA-000"]}. Supported operators are like, notLike, in, notIn, startsWith, endsWith. The operators (between, notBetween, gt, gte, lt, lte) are only applicable to timestamp field.
              schema: {}
    /cases/comments:
        get:
            operationId: GetWomCommentsList
            responses:
                '200':
                    description: Ok
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseCommentsListResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves the list of comments on cases for the tenant.'
            summary: 'Get list of cases comments'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
            - name: page
              in: query
              description: Any particular page number to be looked upon.
              schema:
                type: integer
                format: int32
                default: 0
            - name: size
              in: query
              description: Number of objects in single response page.
              schema:
                type: integer
                format: int32
                default: 15
                maximum: 100
            - name: sort
              in: query
              description: Any particular field on which response to be sorted in ascending
                or descending order.
              schema:
                type: string
                default: timestamp:desc
            - name: filter
              in: query
              description: Specifies the additional filtering criteria. E.g. {"handle":["AA-000"]}. Supported operators are like, notLike, in, notIn, startsWith, endsWith. The operators (between, notBetween, gt, gte, lt, lte) are only applicable to createdDate, modifiedDate fields.
              schema: {}
    /cases/aggregate:
        get:
            operationId: GetWomAggregate
            responses:
                '200':
                    description: Ok
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseAggregateResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves aggregate information of cases for a tenant'
            summary: 'Get aggregate summary of case'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
            - name: includeOnly
              in: query
              description: Response will carry the selected fields defined in this parameter. Multiple fields can be given as comma-separated string in includeOnly request parameter.
              schema:
                type: string
                default: statusInfo
    '/cases/{handle}':
        get:
            operationId: GetWom
            responses:
                '200':
                    description: Getting case definition by handle.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, handle: AA-000, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves case given case handle'
            summary: 'Retrieves case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                    example: AA-001
        put:
            operationId: UpdateWom
            responses:
                '200':
                    description: Getting case definition by handle.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                '206':
                    description: 'Notification Failed'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Notification delivery failed', code: mdsp.core.case.notificationDeliveryFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-000}
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            summary: 'Update case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CaseRequestDTO'
        patch:
            operationId: PatchWom
            responses:
                '200':
                    description: Getting case definition by handle.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                '206':
                    description: 'Notification Failed'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Notification delivery failed', code: mdsp.core.case.notificationDeliveryFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-000}
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            summary: 'Update case minimal properties for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CasePatchRequestDTO'
        delete:
            operationId: DeleteWom
            responses:
                '204':
                    description: Deleted
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            summary: 'Delete case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
    '/cases/{handle}/attachments':
        patch:
            operationId: PartialUpdateWomAttachments
            responses:
                '200':
                    description: Updating case attachments by handle.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseSuccessResponseStatus'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Partial update attachments case for given case handle, replaces whole array of attachments'
            summary: 'Partial update attachments case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AttachmentsRequestDTO'
    '/cases/{handle}/associations':
        patch:
            operationId: PartialUpdateWomAssociations
            responses:
                '200':
                    description: Updating case association of corresponding case.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseSuccessResponseStatus'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Partial update associations case for given case handle, replaces whole array of associations'
            summary: 'Partial update associations case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AssociationsRequestDTO'
    '/cases/{handle}/externalsystems':
        patch:
            operationId: PartialUpdateWomExternalSystems
            responses:
                '200':
                    description: Updating case external systems of corresponding case.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseSuccessResponseStatus'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Partial update externalSystems case for given case handle, replaces whole array of externalSystems'
            summary: 'Partial update externalSystems case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received as response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExternalSystemsRequestDTO'
    '/cases/{handle}/tags':
        patch:
            operationId: PartialUpdateWomTags
            responses:
                '200':
                    description: Updating case tags of corresponding case.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseSuccessResponseStatus'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Partial update tags of case for given case handle, replaces whole array of tags'
            summary: 'Partial update tags of case for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking, received from response of GET /cases/{handle}'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TagsRequestDTO'
    '/cases/{handle}/comments':
        post:
            operationId: CreateWomComment
            responses:
                '201':
                    description: Created
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseCommentsResponse'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Create comment for given case handle'
            summary: 'Create comment for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                - description: 'case Handle which uniquely identifies a case'
                  in: path
                  name: handle
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CaseCommentsRequestDTO'
        get:
            operationId: GetWomCommentsListByhandle
            responses:
                '200':
                    description: Ok
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseCommentsListResponse'
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Retrieves the list of comments on cases for the tenant.'
            summary: 'Get list of case comments for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
            - description: 'case Handle which uniquely identifies a case'
              in: path
              name: handle
              required: true
              schema:
                type: string
            - name: page
              in: query
              description: Any particular page number to be looked upon.
              schema:
                type: integer
                format: int32
                default: 0
            - name: size
              in: query
              description: Number of objects in single response page.
              schema:
                type: integer
                format: int32
                default: 15
                maximum: 100
            - name: sort
              in: query
              description: Any particular field on which response to be sorted in ascending
                or descending order.
              schema:
                type: string
                default: timestamp:desc
            - name: filter
              in: query
              description: Specifies the additional filtering criteria. E.g. {"source":"AHM"}. Supported operators are like, notLike, in, notIn, startsWith, endsWith. The operators (between, notBetween, gt, gte, lt, lte) are only applicable to createdDate, modifiedDate fields.
              schema: {}
    '/cases/{handle}/comments/{id}':
        patch:
            operationId: PartialUpdateWomComment
            responses:
                '200':
                    description: Updated.
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseCommentsResponse'
                '400':
                    description: 'Invalid Request Body'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Invalid fields in body', code: mdsp.core.generic.invalidRequestBody, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '401':
                    description: Unauthorized
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable authentication is missing', code: mdsp.core.generic.unauthorized, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47, handle: AA-058}
                '412':
                   description: case is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case comment is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Partial update comment for given case handle, replaces whole array of tags if present in request. Only creator of comment or administrator can update the existing comment.'
            summary: 'Partial update comment for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                -
                    description: 'case comment identity which uniquely identifies a case'
                    in: path
                    name: id
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking'
                  required: true
                  schema:
                    type: string
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CaseCommentsRequestDTO'
        delete:
            operationId: DeleteWomComment
            responses:
                '204':
                    description: Deleted
                '403':
                    description: Forbidden
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Suitable permissions are missing', code: mdsp.core.generic.forbidden, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '404':
                    description: 'Not found'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Resource not found', code: mdsp.core.case.resourceNotFound, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '412':
                   description: case comment is changed in the background
                   content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'case is changed in the background', code: mdsp.core.case.preconditionFailed, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
                '429':
                    description: TooManyRequests
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Client sent too many requests in given time window', code: mdsp.core.generic.tooManyRequests, logref: '-'}
                '500':
                    description: 'Internal Server Error'
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CaseResponseStatus'
                            examples:
                                'Example 1':
                                    value: {message: 'Unexpected internal server error occurred', code: mdsp.core.generic.internalServerError, logref: 7f7728d4-dc8b-4d84-a4b1-7ddfcf728c47}
            description: 'Only creator of comment or administrator can delete the existing comment.'
            summary: 'Delete case comment for given case handle'
            tags:
                - 'CASE MANAGEMENT'
            security: []
            parameters:
                -
                    description: 'case Handle which uniquely identifies a case'
                    in: path
                    name: handle
                    required: true
                    schema:
                        type: string
                -
                    description: 'case comment identity which uniquely identifies a case'
                    in: path
                    name: id
                    required: true
                    schema:
                        type: string
                - name: If-Match
                  in: header
                  description: 'etag of the latest version for optimistic locking'
                  required: true
                  schema:
                    type: string
servers:
    - url: https://api.eu1.siemens.app/casemanagement-1000001700/v3
      description: Xcelerator compliant URL
