UpdateEstimatedEffort - Update estimated effort
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization
-
Get service endpoint: Replace
{domain}in the API request syntax. -
Get your organization ID: Required only for the Central edition. Go to the Basic Information page in the organization management console.
|
Product |
Resource |
Required permission |
|
project collaboration |
estimated effort |
Read/Write |
Request syntax
Central edition
PUT https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{workitemId}/estimatedEfforts/{id}
Region edition
PUT https://{domain}/oapi/v1/projex/workitems/{workitemId}/estimatedEfforts/{id}
Request headers
|
Parameter |
Type |
Required |
Description |
Example |
|
x-yunxiao-token |
string |
Yes |
The personal access token for authenticating requests to the Alibaba Cloud DevOps API. |
pt-0fh3****0fbG_35af****0484 |
Request parameters
|
Parameter |
Type |
Location |
Required |
Description |
Example |
|
organizationId |
string |
path |
|
The ID of the organization. This parameter is required for the Central edition. |
60de672b1574d72372f88ad1 |
|
workitemId |
string |
path |
Yes |
The ID of the work item. |
c8b292e49a2155f395123112 |
|
id |
string |
path |
Yes |
The ID of the estimated effort record. |
e2a6d432b4b4233719273111 |
| - |
object |
body |
No |
Container for the request body. |
|
|
description |
string |
body |
Yes |
A description of the work. |
Fix the login button bug. |
|
operatorId |
string |
body |
No |
The ID of the user performing the operation. If omitted, this defaults to the ID of the authenticated user. |
19axb2w747d853047213p98w |
|
owner |
string |
body |
Yes |
The ID of the user who owns the effort. |
23cxz6b321f295821437q21z |
|
spentTime |
number |
body |
Yes |
The estimated effort, in hours. |
8 |
|
workType |
string |
body |
No |
The category of the work. |
bug_fix |
Request examples
Central edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/projex/organizations/60de672b1574d72372f88ad1/workitems/c8b292e49a2155f395123112/estimatedEfforts/e2a6d432b4b4233719273111' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"description": "Fix the login button bug.",
"operatorId": "19axb2w747d853047213p98w",
"owner": "23cxz6b321f295821437q21z",
"spentTime": 8,
"workType": "bug_fix"
}'
Region edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/projex/workitems/c8b292e49a2155f395123112/estimatedEfforts/e2a6d432b4b4233719273111' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
--data '
{
"description": "Fix the login button bug.",
"operatorId": "19axb2w747d853047213p98w",
"owner": "23cxz6b321f295821437q21z",
"spentTime": 8,
"workType": "bug_fix"
}'
Response parameters
A successful request returns an empty response body.
Error codes
See the error code center for API-specific error codes.