# Attachments To upload a file you need to perform the following actions using endpoints in this category: 1. Create an Upload Slot 2. Upload a File 3. Delete an Upload Slot ## 1. Create an Upload Slot - [GET /uploadmanager.newuploadslot](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/product-image/get-uploadmanager.newuploadslot-ownertypedid.md): Returns a slot ID that is needed for the /bdmanager.upload/{typedId}/{slot_id}, or /productimages.upload/{slot_id}/{sku} (Upload a File) endpoint. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot ## 3. Delete an Upload Slot - [GET /uploadmanager.deleteslot/{slot_id}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/product-image/get-delete-an-upload-slot.md): Deletes the upload slot that has been created using the /uploadmanager.newuploadslot (Create an Upload Slot) method and retrieves the file upload status, file version and other details. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot ## 1. Create an Upload Slot - [GET /uploadmanager.newuploadslot](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/get-uploadmanager.newuploadslot-ownertypedid.md): Returns a slot ID that is needed for the /bdmanager.upload/{typedId}/{slot_id}, or /productimages.upload/{slot_id}/{sku} (Upload a File) endpoint. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot ## 2. Upload a File - [POST /bdmanager.upload/{typedId}/{slotId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.upload-typedid-slotid.md): Uploads a file. To upload a file you need to retrieve the slot ID using the /uploadmanager.newuploadslot (Create an Upload Slot) endpoint. ## 3. Delete an Upload Slot - [GET /uploadmanager.deleteslot/{slot_id}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/get-delete-an-upload-slot.md): Deletes the upload slot that has been created using the /uploadmanager.newuploadslot (Create an Upload Slot) method and retrieves the file upload status, file version and other details. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot ## List Files - [POST /bdmanager.list/{typedId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.list-typedid.md): Retrieves details of the file(s) attached to the document (specified by typedId). ## Download a File - [POST /bdmanager.download/{typedId}/{binaryDataId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.download-typedid-id.md): Retrieves details of the file(s) attached to the document (specified by typedId). ## Check a File - [POST /bdmanager.checkifexists/{binaryDataId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.checkifexists-binarydataid.md): Checks whether the file with the specified id exists. Returns true within the data property if the file exists. ## Update a File - [POST /bdmanager.update/{typedId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.update-typedid.md): Updates file's metadata (e.g., a file name). ## Delete a File - [POST /bdmanager.delete/{typedId}/{binaryDataId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/post-bdmanager.delete-typedid.md): Deletes a file attached to the specified document. ## Download an Attachment - [GET /bdmanager.downloaddata/{binaryDataId}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/attachments/get-bdmanager.downloaddata-binarydataid.md): Downloads the binary data of the attachment. ## 1. Create an Upload Slot - [GET /uploadmanager.newuploadslot](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/product-image/get-uploadmanager.newuploadslot-ownertypedid.md): Returns a slot ID that is needed for the /bdmanager.upload/{typedId}/{slot_id}, or /productimages.upload/{slot_id}/{sku} (Upload a File) endpoint. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot ## 3. Delete an Upload Slot - [GET /uploadmanager.deleteslot/{slot_id}](https://api.pricefx.com/openapi/reference/pricefx-server_openapi/product-image/get-delete-an-upload-slot.md): Deletes the upload slot that has been created using the /uploadmanager.newuploadslot (Create an Upload Slot) method and retrieves the file upload status, file version and other details. >Information > >To upload a file you need to perform the following actions: >1. Create an Upload Slot >2. Upload a File >3. Delete an Upload Slot