Prepare an upload to OneDrive or SharePoint, or a replacement of an existing file's content, for a client with a shell
Changed onPrepare a Microsoft upload session for an explicitly requested upload. This does not upload bytes or prove completion. With itemId and baseRevision the upload replaces that file's content as a new version; otherwise it creates name in folderId (or the top of the drive). Do not automatically create another session after an uncertain result. Uses the selected connection.
Request
- Base URL: https://api.openworklabs.com
- URL: https://api.openworklabs.com/v1/capabilities/microsoft-365/drive-upload-sessions
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Request body
Response
Secret upload session; file not yet uploaded.
Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - info
response property
anyOf[InvalidRequestError]/details/items/path/items/list-of-types was narrowed by removing typesnumberfrom media typeapplication/jsonof response400 - info
response property
anyOf[subschema #2]/currentRevisionlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response409 - info
response property
anyOf[subschema #2]/modifiedTimelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response409 - info
response property
replaces/previousRevisionlist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200 - info
the
/response's property pattern was changed from^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$to^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$for the status
- breaking
- info
endpoint added
- info