# Update Custom Field Updates the properties of an existing field such as its name, description, data type, size, and default value. ## Endpoint `PUT /dcapi/customColumn/modifyCustomColumn` ## Request URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/customColumn/modifyCustomColumn` ## Scope `DesktopCentralCloud.CustomField.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — **Mandatory** - `application/editCustomColumnStatus.v1+json` - **Content-Type** `string` — **Mandatory** - `application/customColumnDetails.v1+json` ### Query Parameters - **forceUpdate** `boolean` — Optional - Updates the custom field even if it is being used in other reports or dependent columns. ### Request Body `application/json` - `JSON Object` - **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/cloud/custom-field-create-custom-data-type.html) - **size** `string` — **Mandatory** - Maximum character 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 in the response of [/dcapi/customFields/computers/{ID}](https://www.manageengine.com/products/desktop-central/help/api/cloud/custom-field-get-computer-custom-fields.html). ## Sample Request ```curl 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 ```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` - `JSON Object` - **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" } ``` ## API Rate Limits **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.