CRUD
ItemAttachments

Perform multiple operations with attachments

Accepts a list of create/update/patch/delete operations (see the request model for more details).<br/> Each operation can target a single or multiple attachments.<br/> Returns a list of results for each input operation including errors.<br/> Guarantees that the size and order of the returned results matches the order of input operations.<br/>Requirements:<br/>- auth-client scopes: "workspace"<br/>- user permission: "write" or higher

post/api/workspaces/{workspaceId}/attachments/bulk

Request

  • Base URL: https://app.airfocus.com
  • URL: https://app.airfocus.com/api/workspaces/{workspaceId}/attachments/bulk
  • Auth: HTTP bearer

Path parameters

workspaceIdstring uuid required

Query parameters

actAsAdminboolean

Enable sudo-mode for admins for a single request, which gives full permission to all workspaces in the team.

Request body

Response

_embeddedobject required
contentTypestring required

Type of updated content.

createdAtstring date-time required

When this attachment link has been created.

idstring uuid required

ID of an item-attachment link.

itemIdstring uuid required

ID of the item to which the attachment is linked.

lastUpdatedAtstring date-time required

When this attachment link has been updated for the last time.

namestring required

Name of the attachment, e.g. its file name (to be displayed in UI).

uristring required

URI of the attachment contents. It can be any URI, but conventionally it's a relative URI like 'attachment:1ecb9ecd-8a97-403a-a74a-741eb4b8fb69' with UUID of a file uploaded to airfocus file-storage. Such URI is then resolved by clients into a full HTTPS URL.

Changes

No recorded changes to this operation across all 1 revision of this API.