{"openapi":"3.0.4","info":{"title":"Create a new Worker","description":"If the Worker already exists a failure will be returned","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/workflow"}],"paths":{"/api/workers":{"post":{"tags":["Workers"],"summary":"Create a new Worker","description":"If the Worker already exists a failure will be returned","operationId":"CreateWorker","requestBody":{"description":"Worker to be created","content":{"application/json-patch+json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/CreateWorkerRequest"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282"}}},"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/CreateWorkerRequest"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282"}}},"text/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/CreateWorkerRequest"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282"}}},"application/*+json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/CreateWorkerRequest"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282"}}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/Worker"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282/health"},"version":{"asAtCreated":"2023-01-01T12:00:00.0000000+00:00","userIdCreated":"UserId123","requestIdCreated":"RequestId123","asAtModified":"2023-01-01T12:00:00.0000000+00:00","userIdModified":"UserId123","requestIdModified":"RequestId123","asAtVersionNumber":1},"parameters":[],"resultFields":[]}},"text/plain":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/Worker"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282/health"},"version":{"asAtCreated":"2023-01-01T12:00:00.0000000+00:00","userIdCreated":"UserId123","requestIdCreated":"RequestId123","asAtModified":"2023-01-01T12:00:00.0000000+00:00","userIdModified":"UserId123","requestIdModified":"RequestId123","asAtVersionNumber":1},"parameters":[],"resultFields":[]}},"text/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/Worker"},"example":{"id":{"scope":"Health","code":"HealthCheckWorker"},"displayName":"ASP.Net Health Check worker","description":"Calls /health to check a service is running","workerConfiguration":{"type":"HealthCheck","url":"http://localhost.lusid.com:8282/health"},"version":{"asAtCreated":"2023-01-01T12:00:00.0000000+00:00","userIdCreated":"UserId123","requestIdCreated":"RequestId123","asAtModified":"2023-01-01T12:00:00.0000000+00:00","userIdModified":"UserId123","requestIdModified":"RequestId123","asAtVersionNumber":1},"parameters":[],"resultFields":[]}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/workflow/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"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"}}}}