---
title: API payload to update the custom task field
description: "Scenario: The user wants to update a custom task field via task update API. Solution: API URL: POST https://{host}/v2/Task.svc/Update?accessKey=AccessKey&secretKey=SecretKey Example Request: Content-Type: application/json JSON Body/Payload { ..."
url: "https://supportb.kinsta.cloud/docs/api-pyalo/"
updated: "2024-05-28"
category: API Related
---

# API payload to update the custom task field

**Scenario:** The user wants to update a custom task field via task update API. 

**Solution: ****API URL:** POST  https://{host}/v2/Task.svc/Update?accessKey=AccessKey&secretKey=SecretKey

**Example ****Request: **Content-Type: application/json
 JSON Body/Payload {
    "UserTaskId": "6c7e015b-dd1c-11ee-\*\*\*\*\*\*-\*\*\*\*\*\*\*\*\*\*",
    "Name": "Website Lead Call: TEST LSQ",
    "Description": "owner test",
    "RelatedEntity": 1,
    "RelatedEntityId": "dbd7f35d-5d7e-4b9f-a639-\*\*\*\*\*\*\*\*\*\*\*\*\*\*",
    "OwnerId": "2f2659f3-b808-11ee-807d-\*\*\*\*\*\*\*\*\*\*\*\*\*\*",
  **  "CustomFields": {****"mx_Custom_1": "7"**
}
}

*P.S:  We do get a success response on passing the following incorrect payload but the field value does not get updated. Thus, it is important to pass the custom fields in the right format as mentioned in the above solution. *

*![](https://desk.zoho.in/galleryDocuments/edbsn481f7bd8d2d60476207d3114665c05bba9c89c6d5e0bb770ea6cfce38d37e743f13ca0fa441608471349e4f53143429fa47e573935c6a4f0de6a59993539045d)*
