fileUpload

Generates a URL to upload a file to.

Changed on

Generates a URL that can be used to upload a file. Use the returned upload id to create a file entry. See <see cref="T:Awork.Files.Service.Feature.FileUpload.Endpoints.PostUploadByUploadId" /> for more information.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

post/files/generateuploadurl

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/files/generateuploadurl
  • Auth: HTTP bearer

Response

OK

uploadIdstring required

The id of the temporary container that the file will be uploaded to.

uploadURLstring required

The URL that the client should upload the file to.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostGenerateUploadURL removed and replaced with fileUpload_PostGenerateUploadURL