Upload a file to the custom field in computer

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

This API can be used to upload a file to a custom field of a given resource ID.

Request URL

https://{serverurl}/dcapi/customFields/computers/{ColumnID}/file

Scope

DesktopCentralCloud.CustomField.CREATECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/uploadCustomFieldFile.v1+jsonapplication/uploadCustomFieldFile.v1+jsonCopied!

- Path Parameters

ColumnIDstringMandatory

Provide the resource ID obtained from this API

- Query Parameters

selectedResourcesstringOptional

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

columnNamestringOptional

Specifies the custom field column where the file should be uploaded

tableNamestringOptional

The table name can be any of the names provided in the list below
1.ManagedComputerCustomFields

- Request Body

multipart/form-data
JSON Object
Hide Sub-Attributes
uploadedFilestringOptional

The file to be uploaded to the custom field. Supported formats: archives, data files, images, presentation files, scripts, spreadsheets, and documents

selectedResourcesstringOptional

Identifier of the resource to which the file will be attached

columnNamestringOptional

The custom field column where the file should be uploaded

tableNamestringOptional

Target table in which the custom field data will be stored

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
  --url https://appdomains/dcapi/customFields/computers/{ColumnID}/file \
  --header 'Accept: application/uploadCustomFieldFile.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: multipart/form-data'

Sample Request Body

Copied!
// 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

Possible Response Codes

204HTTP code

Sample Response: HTTP 204

Copied!
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.