---
# System prepended metadata

title: Data request - alternate flows

---

# Data request - alternate flows

<!-- 
Replace yellow to #DCD0FF
Replace red to #9932CC
-->
```plantuml
@startuml
participant "Data owner" #DCD0FF
participant "Data consumer" #DCD0FF
participant "CDI (data consumer)" #DCD0FF
participant "CDI (data provider)" #DCD0FF
participant "Data provider" #DCD0FF
group Cancel data-request
    "Data consumer"-[#9932CC]>"CDI (data consumer)": login (/api/user/login)
    "CDI (data consumer)"--[#9932CC]>"Data consumer": access token (jwt)
    "Data consumer"-[#9932CC]>"CDI (data consumer)": cancel data-request (/api/dataRequest/cancelDataRequest <dataRequestId>)
    group cancel successful
        "CDI (data consumer)"--[#9932CC]>"Data consumer": acknowledgement
        "CDI (data consumer)"-[#9932CC]>>"CDI (data provider)": data propagation
    end
    group cancel failed
        "CDI (data consumer)"--[#9932CC]>"Data consumer": error - cancel failed
    end
end
group Place holder
    "Data provider"-[#9932CC]>"CDI (data provider)": login (/api/user/login)
    "CDI (data provider)"--[#9932CC]>"Data provider": access token (jwt)
    "Data provider"-[#9932CC]>"CDI (data provider)": cancel data-request (/api/dataRequest/cancelDataRequest <dataRequestId>)
    group cancel successful
        "CDI (data provider)"--[#9932CC]>"Data provider": acknowledgement
        "CDI (data consumer)"-[#9932CC]>>"CDI (data provider)": data propagation
    end
    group cancel failed
        "CDI (data provider)"--[#9932CC]>"Data provider": error - cancel failed
    end
end
@enduml
```