{"openapi":"3.0.4","info":{"title":"Uploads a file to Lusid Drive. If using an SDK, consider using the UploadAsStreamAsync function for larger files instead.","version":"0.0.1"},"servers":[{"url":"https://fbn-prd.lusid.com/drive"}],"paths":{"/api/files":{"post":{"tags":["Files"],"summary":"Uploads a file to Lusid Drive. If using an SDK, consider using the UploadAsStreamAsync function for larger files instead.","operationId":"CreateFile","parameters":[{"name":"x-lusid-drive-filename","in":"header","description":"File name.","required":true,"schema":{"maxLength":256,"minLength":1,"pattern":"^[A-Za-z0-9_\\-\\.]+[A-Za-z0-9_\\-\\. ]*$","type":"string"}},{"name":"x-lusid-drive-path","in":"header","description":"File path.","required":true,"schema":{"maxLength":512,"minLength":1,"pattern":"^[\\/a-zA-Z0-9 \\-_]+$","type":"string"}},{"name":"Content-Length","in":"header","description":"The size in bytes of the file to be uploaded","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"description":"Binary file content to upload as a stream","content":{"application/octet-stream":{"schema":{"type":"string","description":"Binary file content stream","format":"binary"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/StorageObject"},"example":{"id":"fb7225b63b864752aa03ba37872fe8e8s31w","path":"/documents/admin/legals","name":"mylegaldocument.docx","createdBy":"00u3dipdntsyNqFf51t7","createdOn":"2020-01-02T00:00:00.0000000+00:00","updatedBy":"00u6po8cnkZoLoS5j1t7","updatedOn":"2020-03-02T00:00:00.0000000+00:00","type":"File","size":123456,"status":"Available","statusDetail":""}},"text/plain":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/StorageObject"},"example":{"id":"fb7225b63b864752aa03ba37872fe8e8s31w","path":"/documents/admin/legals","name":"mylegaldocument.docx","createdBy":"00u3dipdntsyNqFf51t7","createdOn":"2020-01-02T00:00:00.0000000+00:00","updatedBy":"00u6po8cnkZoLoS5j1t7","updatedOn":"2020-03-02T00:00:00.0000000+00:00","type":"File","size":123456,"status":"Available","statusDetail":""}},"text/json":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/StorageObject"},"example":{"id":"fb7225b63b864752aa03ba37872fe8e8s31w","path":"/documents/admin/legals","name":"mylegaldocument.docx","createdBy":"00u3dipdntsyNqFf51t7","createdOn":"2020-01-02T00:00:00.0000000+00:00","updatedBy":"00u6po8cnkZoLoS5j1t7","updatedOn":"2020-03-02T00:00:00.0000000+00:00","type":"File","size":123456,"status":"Available","statusDetail":""}}}},"400":{"description":"The details of the input related failure","content":{"application/json":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/plain":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/LusidValidationProblemDetails"}},"text/json":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/LusidValidationProblemDetails"}}}},"default":{"description":"Error response","content":{"application/json":{"schema":{"$ref":"/docs/api/drive/schemas.json#/components/schemas/LusidProblemDetails"}}}}},"security":[{"BearerAuth":[]}],"x-fbn-apistatus":"Stable"}}},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}}}