{"openapi":"3.0.4","info":{"title":"Get the history of a Task","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/workflow"}],"paths":{"/api/tasks/{id}/history":{"get":{"tags":["Tasks"],"summary":"Get the history of a Task","operationId":"GetTaskHistory","parameters":[{"name":"id","in":"path","description":"The Task Id for which to get the history","required":true,"schema":{"maxLength":36,"minLength":36,"pattern":"^[a-zA-Z0-9\\-]+$","type":"string"}},{"name":"asAt","in":"query","description":"The asAt datetime of the oldest change to retrieve. Defaults to returning the latest version of the Task if not specified.","schema":{"type":"string","format":"date-time"},"x-nullable":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/ResourceListOfChangeItem"},"example":{"values":[{"asAtModified":"2024-01-02T03:00:00.0000000+00:00","userIdModified":"UserId1","requestIdModified":"RequestId1","asAtVersionNumber":2,"action":"Update","attributeName":"State","previousValue":"Ready","newValue":"Started"},{"asAtModified":"2024-01-02T03:00:00.0000000+00:00","userIdModified":"UserId1","requestIdModified":"RequestId1","asAtVersionNumber":2,"action":"Update","attributeName":"Fields[FieldA]","previousValue":"A","newValue":"B"},{"asAtModified":"2024-01-02T03:01:00.0000000+00:00","userIdModified":"UserId2","requestIdModified":"RequestId2","asAtVersionNumber":3,"action":"Update","attributeName":"Fields[FieldA]","previousValue":"B","newValue":"C"}],"links":[]}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"404":{"description":"Task not found.","content":{"application/json":{"schema":{"type":"string"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"Stable"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}