Stream bytes to an authorized direct field upload using Database or Local storage.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Put, RequestUri = new Uri("https://example.com/api/workspace/files/uploads/example/content"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("binary") { Headers = { ContentType = new MediaTypeHeaderValue("application/octet-stream") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/files/uploads/example/content';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/octet-stream'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/workspace/files/uploads/example/content \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/octet-stream' \ --data binaryAuthorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”OK
object
Public state of a resumable managed file upload. PublishedFileReferenceId is non-null only once the session reaches Available.
object
One provider-confirmed uploaded part safe to expose for resume.
object
object
object
object
object
object
object
object
Example
{ "Data": null, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}The operation was refused; inspect Errors. Data may be null.
object
Public state of a resumable managed file upload. PublishedFileReferenceId is non-null only once the session reaches Available.
object
One provider-confirmed uploaded part safe to expose for resume.
object
object
object
object
object
object
object
object
Example
{ "Data": null, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden; the controller returns no response body.
The operation was refused; inspect Errors. Data may be null.
object
Public state of a resumable managed file upload. PublishedFileReferenceId is non-null only once the session reaches Available.
object
One provider-confirmed uploaded part safe to expose for resume.
object
object
object
object
object
object
object
object
Example
{ "Data": null, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}The operation was refused; inspect Errors. Data may be null.
object
Public state of a resumable managed file upload. PublishedFileReferenceId is non-null only once the session reaches Available.
object
One provider-confirmed uploaded part safe to expose for resume.
object
object
object
object
object
object
object
object
Example
{ "Data": null, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}The operation was refused; inspect Errors. Data may be null.
object
Public state of a resumable managed file upload. PublishedFileReferenceId is non-null only once the session reaches Available.
object
One provider-confirmed uploaded part safe to expose for resume.
object
object
object
object
object
object
object
object
Example
{ "Data": null, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}