TaskAttachment API

Reference materials for task assignees can be attached to tasks. For information on Tasks, read Task API.

This article explains what calls can be made to the Surpass API using the TaskAttachment resource.

Import this API into your Postman Workspace

In This Article

Authoring task attachments

The TaskAttachment API resource can be used to retrieve, attach, and delete task attachments for Authoring tasks.

To learn more about Authoring tasks, read Creating an Authoring taskWorking in an Authoring task as an assignee, and Working in an Authoring task as a lead assignee.

Retrieving Authoring task raw attachment data

get /api/v2/ItemAuthoringTask/{id}/Attachment/{id}

Send a request to the endpoint to retrieve a specific attachment in Base64 encoded format using its ID. No request body is required.

Attaching a file to an Authoring task

post /api/v2/ItemAuthoringTask/{id}/Attachment

Send a request to the endpoint to attach a file to the specified Authoring task.

Deleting an Authoring task attachment

delete /api/v2/ItemAuthoringTask/{id}/Attachment/{id}

Send a request to the endpoint to delete a specific attachment. No request body is required.

Review task attachments

The TaskAttachment API resource can be used to retrieve, attach, and delete task attachments for Review tasks.

To learn more about Review tasks, read Creating a Review taskWorking in a Shared Review task as an assignee, and Working in a Shared Review task as a lead assignee for Shared Review tasks. For Individual Review tasks, read Working in an Individual Review task as an assignee and Working in an Individual Review task as a lead assignee.

Retrieving Review task raw attachment data

get /api/v2/ItemReviewTask/{id}/Attachment/{id}

Send a request to the endpoint to retrieve a specific attachment in Base64 encoded format using its ID. No request body is required.

Attaching a file to a Review task

post /api/v2/ItemReviewTask/{id}/Attachment

Send a request to the endpoint to attach a file to the specified Review task.

Deleting a Review task attachment

delete /api/v2/ItemReviewTask/{id}/Attachment/{id}

Send a request to the endpoint to delete a specific attachment. No request body is required.

Standard Setting task attachments

The TaskAttachment API resource can be used to retrieve, attach, and delete task attachments for Standard Setting tasks.

To learn more about Standard Setting tasks, read Creating a Standard Setting taskWorking in a Standard Setting task as an assignee, and Working in a Standard Setting task as a lead assignee.

Retrieving Standard Setting task raw attachment data

get /api/v2/StandardSettingTask/{id}/Attachment/{id}

Send a request to the endpoint to retrieve a specific attachment in Base64 encoded format using its ID. No request body is required.

Attaching a file to a Standard Setting task

post /api/v2/StandardSettingTask/{id}/Attachment

Send a request to the endpoint to attach a file to the specified Standard Setting task.

Deleting a Standard Setting task attachment

delete /api/v2/StandardSettingTask/{id}/Attachment/{id}

Send a request to the endpoint to delete a specific attachment. No request body is required.

Error Codes

Refer to the following table for information on error codes that may be encountered when using this resource.

Further reading

Read the following articles to learn more about similar APIs, how to get started with the Surpass API v2, and how to get the best out of this reference documentation:

NOTE: This form is to provide feedback to help improve the Surpass Help documentation only. If you need live support, contact support@surpass.com.