# Update Custom Field Updates the properties of an existing field such as its name, description, data type, size, and default value. ## Endpoints `PUT /dcapi/customColumn/modifyCustomColumn` ## Request URL `https://{server-hostname}:8383/dcapi/customColumn/modifyCustomColumn` ## Scope `CustomField.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory: `application/editCustomColumnStatus.v1+json` - **Content-Type** `string` — Mandatory: `application/customColumnDetails.v1+json` ### Request Body `application/json` - `tableName` `string` — Mandatory - 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. - `columnName` `string` — Mandatory - Custom name for the field. - `dataType` `string` — Mandatory - The data type of a custom field can be one of the following: 1. `CHAR` 2. `INTEGER` 3. `BOOLEAN` 4. `FILE` - A custom data type can also be specified as the field's data type, which can be created using the API: [/dcapi/customColumn/customDataType](https://www.manageengine.com/products/desktop-central/help/api/onpremise/custom-field-create-custom-data-type.html) - `size` `string` — Mandatory - Maximum characters allowed for custom field value. - `defaultValue` `string` — Optional - Value to be used if none is provided. - `description` `string` — Mandatory - Metadata for the field. - `isPII` `boolean` — Mandatory - Indicates if the field holds sensitive data. - `actualColumnName` `string` — Mandatory - The actual name of the custom field column for which the User Data Type length is required. `actualColumnName` can be obtained from the `columName` key from the response of [/dcapi/customFields/computers/{ID}](https://www.manageengine.com/products/desktop-central/help/api/onpremise/custom-field-get-computer-custom-fields.html) ## Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/customColumn/modifyCustomColumn \ --header 'Accept: application/editCustomColumnStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/customColumnDetails.v1+json' \ --data '{"actualColumnName":"COL3","size":100,"defaultValue":50,"dataType":"CHAR","description":"Custom Column to Store OS type","isPII":false,"columnName":"OS Type","tableName":"ManagedComputerCustomFields"}' ``` ### Sample Request Body ```json { "actualColumnName": "COL3", "size": 100, "defaultValue": 50, "dataType": "CHAR", "description": "Custom Column to Store OS type", "isPII": false, "columnName": "OS Type", "tableName": "ManagedComputerCustomFields" } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - `status` `string` - Indicates the result of the operation. - `message` `string` - Confirmation message of the operation performed. ## Possible Response Codes - **200** `HTTP code` ## Sample Response: HTTP 200 ```json { "message": "Field OS Type has been modified successfully", "status": "SUCCESS" } ``` ![ ](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.