# Uploads a file to a custom field for a specified computer resource This API allows clients to upload a file into a designated custom field within a computer resource. ## Endpoint **PUT** `/dcapi/customFields/values/file` ## Request URL https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/customFields/values/file ## Scope `DesktopCentralCloud.CustomField.CREATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** - `application/uploadCustomFieldFile.v1+json` ### Query Parameters - **selectedResources** `string` — Optional - The resource can be one of the following, depending on the view in which the custom field is created: - `RESOURCE_ID` — if the custom field is created in the Computer view - `SOFTWARE_ID` — if the custom field is created in the Software view - **columnName** `string` — Optional - Column name where the uploaded file will be mapped. - **tableName** `string` — Optional - The table name can be any of the names provided in the list below: 1. `ManagedComputerCustomFields` — if custom field created in computer view 2. `InvSWCustomFields` — if custom field created in software view. ### Request Body `multipart/form-data` - `uploadedFile` `string` — Optional - The file to be uploaded to the custom field. Supported formats: archives, data files, images, presentation files, scripts, spreadsheets, and documents - `selectedResources` `string` — Optional - Identifier of the resource to which the file will be attached - `columnName` `string` — Optional - The custom field column where the file should be uploaded - `tableName` `string` — Optional - Target table in which the custom field data will be stored ## Sample Request ```curl curl --request PUT \ --url https://appdomains/dcapi/customFields/values/file \ --header 'Accept: application/uploadCustomFieldFile.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: multipart/form-data' ``` ## Sample Request Body ```text // Note: payload contains multiple type attributes // type: string uploadedFile = File to be uploaded // type: string selectedResources = 301 // type: string columnName = COL301 // type: string tableName = ManagedComputerCustomFields ``` ## Possible Response Codes - **204** — HTTP code ## Sample Response: HTTP 204 ```text 204 No Content ``` ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration — Time window for the threshold. Threshold — Number of API calls allowed within the specified duration. Lock Period — Wait time before consecutive API requests.