Update Custom Field

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

Updates the properties of an existing field such as its name, description, data type, size, and default value

Request URL

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

Scope

DesktopCentralCloud.CustomField.UPDATECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

AcceptstringMandatory
application/editCustomColumnStatus.v1+jsonapplication/editCustomColumnStatus.v1+jsonCopied!
Content-TypestringMandatory
application/customColumnDetails.v1+jsonapplication/customColumnDetails.v1+jsonCopied!

- Query Parameters

forceUpdatebooleanOptional

Updates the custom field even if it is being used in other reports or dependent columns

- Request Body

application/json
JSON Object
Hide Sub-Attributes
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.

columnNamestringMandatory

custom name for the field

dataTypestringMandatory

The data type of a custom field can be one of the following: 1.CHAR
2.INTEGER
3.BOOLEAN
4.FILE < br>A custom data type can also be specified as the field’s data type, which can be created using the API. /dcapi/customColumn/customDataType

sizestringMandatory

maximum character allowed for custom field value

defaultValuestringOptional

value to be used if none is provided.

descriptionstringMandatory

metadata for the field

isPIIbooleanMandatory

indicates if the field holds sensitive data

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}

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
  --url https://appdomains/dcapi/customColumn/modifyCustomColumn \
  --header 'Accept: application/editCustomColumnStatus.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/customColumnDetails.v1+json' \
  --data '{"size":100,"actualColumnName":"COL3","dataType":"CHAR","description":"Custom Column to Store OS type","isPII":false,"tableName":"ManagedComputerCustomFields","columnName":"OS Type"}'

Sample Request Body

Copied!
  {
    "actualColumnName": "COL3",
    "size": 100,
    "defaultValue": 50,
    "dataType": "CHAR",
    "description": "Custom Column to Store OS type",
    "isPII": false,
    "columnName": "OS Type",
    "tableName": "ManagedComputerCustomFields"
  }
                
Show full

Response Parameters

- HTTP code 200

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

Indicates the result of the operation

messagestring

Confirmation message of the operation performed

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Copied!
  {
    "message": "Field <b>OS Type</b> has been modified 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.