taskTemplateFiles

Uploads a new version of the specified tasktemplate file.

Changed on

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

post/tasktemplates/{tasktemplateId}/files/{fileId}/versions

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/tasktemplates/{tasktemplateId}/files/{fileId}/versions
  • Auth: HTTP bearer

Path parameters

tasktemplateIdstring uuid required
fileIdstring uuid required

Request body multipart/form-data

filestring binary required

Response

OK

idstring uuid

The id of the file version.

fileInfoIdstring uuid

The id of the file this version belongs to.

versionnumber double

The version of the file.

sizeinteger

The size of the file, in bytes.

widthnumber double nullable

The width if this is an image file.

heightnumber double nullable

The height if this is an image file.

createdOnstring date-time

The date this file version was created.

createdBystring uuid

The id of the user who created this file version.

updatedOnstring date-time

The date this file version was last modified.

updatedBystring uuid

The id of the user who last modified this file version.

Changes

    • breaking

      added the new required request property

    • breaking

      the response's body type changed from no type to object for status

    • warning

      removed the request property

    • info

      api operation id taskTemplateFiles_CreateTaskTemplateFileVersion removed and replaced with taskTemplateFiles_PostFilesVersionsByTaskTemplateNameAndTaskTemplateIdAndFileId

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API