Modify custom column value for the selected resources

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 update the values of custom fields for the given set of resources

Request URL

https://{serverurl}/dcapi/customColumn/modifyCustomColumnValue

Scope

DesktopCentralCloud.CustomField.CREATECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

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

- Request Body

application/json
JSON Object
Hide Sub-Attributes
resourceNamestringMandatory

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

selectedResourcesstringMandatory

Provide the ID based on the view where the custom field is created.
1.If the custom field is created under the Computer view, use the resource_id obtained from this API
2.If the custom field is created under the Software view, use the software_id obtained from this API

customColumnValuestringMandatory

The new value to be set for the custom field

actualColumnNamestringMandatory

The actual name of the custom field column for which the User Data Type length is required actualColumnName can be get from the columName key from the response of /dcapi/customFields/computers/{ID}

tableNamestringMandatory

The table name can be any of the names provided in the list below
1.ManagedComputerCustomFields-if customfield created in computer view
2.InvSWCustomFields-if customfield created in software view.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
  --url https://appdomains/dcapi/customColumn/modifyCustomColumnValue \
  --header 'Accept: application/modifyCustomColumn.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --data '{"actualColumnName":"COL301","customColumnValue":"3","resourceName":"RESOURCE_ID","selectedResources":"301","tableName":"ManagedComputerCustomFields"}'

Sample Request Body

Copied!
  {
    "actualColumnName": "COL301",
    "customColumnValue": "3",
    "resourceName": "RESOURCE_ID",
    "selectedResources": "301",
    "tableName": "ManagedComputerCustomFields"
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusstring

Indicates whether the custom column value update was successful

messagestring

Confirmation message of the custom column value update operation

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Copied!
  {
    "message": "Custom column value has been updated successfully",
    "status": "SUCCESS"
  }
                
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.