Update task transaction hash
Run in Apidog
Stores a Web3 transaction hash for blockchain verification of task completion.Both admins and employees can use this endpoint. Ownership rule : Employees can only update their own tasks.
Request Add the parameter Authorization
to Headers Example: Authorization: ********************
or
Body Params application/json Required
{
"txHash" : "0x8a4c1e2f3b5d6c7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d"
} Request Code Samples
curl --location --request PATCH '/tasks/cm5task001/txhash' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"txHash": "0x8a4c1e2f3b5d6c7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d"
}' Responses
{
"success" : true ,
"data" : {
"id" : "cm5task001" ,
"title" : "Build Dashboard UI" ,
"status" : "COMPLETED" ,
"txHash" : "0x8a4c1e2f3b5d6c7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d"
} ,
"message" : "Task verification hash updated successfully"
}
Modified at 2026-02-22 18:59:05