Delete an attachment

Delete a file attached to an instance, using its revision ID.

1 min read

Delete an attachment.

Send the delete request

  1. HTTP URL : https://<your-instance>.yooi.io/api/store/object/id/{objectId}/attachments/{attachmentFieldId}/{revisionId}
  1. HTTP method: DELETE
  1. Parameters:
    • objectId : instance id
    • attachmentFieldId : field id
  1. Example
    curl -X 'DELETE' \
      'https://<your-instance>.yooi.io/api/store/object/id/cc416276-73c4-4cb8-a090-d101422f36aa/attachments/51842f47-311c-47aa-90ea-947eb4722417/73a48862-b92a-4971-848c-50e7795875d9' \
      -H 'Authorization: Bearer #yourtoken#'
  1. Response
    {
      "eventId": "1739447270741-0"
    }

Read more

Related articles

Was this page helpful?