Upload a file to the custom field in computer This API can be used to upload a file to a custom field of a given resource ID.
Request URL https://{server-hostname}:8383/dcapi/customFields/computers/{ColumnID}/file
Scope
Header Authorization: d92d4xxxxxxxxxxxxx15f52
Request Parameters - Request Headers - Path Parameters ColumnID string Mandatory
Provide the resource ID obtained from this API
- Request Body multipart/form-data JSON Object
Hide Sub-Attributes 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
Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
--url https://appdomain/dcapi/customFields/computers/{ColumnID}/file \
--header 'Accept: application/uploadCustomFieldFile.v1+json' \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: multipart/form-data' \
-F 'uploadedFile=File to be uploaded' \
-F 'selectedResources=301' \
-F 'columnName=COL301' \
-F 'tableName=ManagedComputerCustomFields'import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.io.IOException;
import java.net.http.HttpTimeoutException;
public class Main {
public static void main(String[] args) {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://appdomain/dcapi/customFields/computers/{ColumnID}/file"))
.header("content-type", "multipart/form-data")
.header("Accept", "application/uploadCustomFieldFile.v1+json")
.header("Authorization", " d92d4xxxxxxxxxxxxx15f52")
.method("PUT", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
import http.client
conn = http.client.HTTPSConnection("appdomain")
headers = {
'content-type': "multipart/form-data",
'Accept': "application/uploadCustomFieldFile.v1+json",
'Authorization': " d92d4xxxxxxxxxxxxx15f52"
}
conn.request("PUT", "/dcapi/customFields/computers/{ColumnID}/file", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
headersMap = Map();
headersMap.put("Accept", "application/uploadCustomFieldFile.v1+json");
list_of_text=List();
list_of_text.add({"paramName":"uploadedFile","content":"value","stringPart":"true"});
list_of_text.add({"paramName":"selectedResources","content":"value","stringPart":"true"});
list_of_text.add({"paramName":"columnName","content":"value","stringPart":"true"});
list_of_text.add({"paramName":"tableName","content":"value","stringPart":"true"});
response = invokeUrl
[
url: "https://appDomain/dcapi/customFields/computers/{ColumnID}/file"
type: PUT
headers: headersMap
files: list_of_text
connection: connection_name
]
info response;
$headers=@{}
$headers.Add("content-type", "multipart/form-data")
$headers.Add("Accept", "application/uploadCustomFieldFile.v1+json")
$headers.Add("Authorization", " d92d4xxxxxxxxxxxxx15f52")
$response = Invoke-WebRequest -Uri 'https://appdomain/dcapi/customFields/computers/{ColumnID}/file' -Method PUT -Headers $headersSample Request Body // 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▼ Show full
Sample Response: HTTP 204 204 No Content▼ Show full
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.