# Modify custom column value for the selected resources This API can be used to update the values of custom fields for the given set of resources ## Endpoint `PUT /dcapi/customColumn/modifyCustomColumnValue` ## Request URL `https://{server-hostname}:8383/dcapi/customColumn/modifyCustomColumnValue` ## Scope `CustomField.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/modifyCustomColumn.v1+json` ### Request Body `application/json` - `resourceName` `string` **Mandatory** - 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 - `selectedResources` `string` **Mandatory** - 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](https://www.manageengine.com/products/desktop-central/help/api/onpremise/computers-getcomputersinfo.html) 2. If the custom field is created under the Software view, use the `software_id` obtained from [this API](https://www.manageengine.com/products/desktop-central/help/api/onpremise/inventory-get-installed-software-list.html) - `customColumnValue` `string` **Mandatory** - The new value to be set for the custom field - `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) - `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 ### Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/customColumn/modifyCustomColumnValue \ --header 'Accept: application/modifyCustomColumn.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"actualColumnName":"COL301","customColumnValue":"3","resourceName":"RESOURCE_ID","selectedResources":"301","tableName":"ManagedComputerCustomFields"}' ``` ### Sample Request Body ```json { "actualColumnName": "COL301", "customColumnValue": "3", "resourceName": "RESOURCE_ID", "selectedResources": "301", "tableName": "ManagedComputerCustomFields" } ``` ## Response Parameters ### HTTP Code 200 Response Body - `application/json` - `status` `string` - Indicates whether the custom column value update was successful - `message` `string` - Confirmation message of the custom column value update operation ### Possible Response Codes - **200** `HTTP code` ### Sample Response: HTTP 200 ```json { "message": "Custom column value has been updated 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.