Attachment Delete

Overview

Deletes an attachment.

API URI

This is the URI OpsHub will execute to call this API:

DELETE: entities/{entityTypeId}/{entityId}/attachments? 
attachmentId={attachmentId}& 
projectId={projectId}&
attachmentContainer={attachmentContainer}&
containerItemId={containerItemId}

URI Parameters

Name
In
Required
Type
Description

entityTypeId

path

True

String

‘id’ of entity type for given entity id

entityId

path

True

String

‘id’ of the entity in which attachment to be deleted

attachmentId

path

True

String

Id of the attachment that needs to be deleted

projectId

query

True

String

Project in which the given entity exists

attachmentContainer

query

False

String

Name of the container (field) in which the attachment to be deleted. For example, if the attachment is to be deleted from 'Steps' field, attachmentContainer="Steps"

containerItemId

query

False

String

Id of the container (field) in which the attachment to be deleted. For example, if the attachment is to be deleted from 'Steps' field, provide step id, containerItemId="10409526"

Request Payload

This API does not require a request body. Only HTTP status 204 is returned on successful deletion.

Last updated