CreateEstimatedEffort - Log estimated effort

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization

  • Get the endpoint: Replace {domain} in the API request syntax.

  • Get a personal access token.

  • Get the organization ID: Required for the Central edition only. Go to the Organization Admin Console and find your organization ID on the Basic Information page.

Product

Resource

Required permissions

project collaboration

estimated effort

Read/write

Request syntax

Central edition

POST https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/estimatedEfforts

Region edition

POST https://{domain}/oapi/v1/projex/workitems/{id}/estimatedEfforts

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

A personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example

id

string

path

Yes

The work item ID.

organizationId

string

path

  • Yes, for the Central edition

  • No, for the Region edition

The organization ID.

-

object

body

No

description

string

body

Yes

A description of the work performed.

operatorId

string

body

No

The operator ID. Defaults to the current user.

18xxxxxxxxxxxxxxx

owner

string

body

Yes

The user ID of the owner.

spentTime

number

body

Yes

The estimated effort.

workType

string

body

No

The work type.

Request examples

Central edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/projex/organizations/{organizationId}/workitems/{id}/estimatedEfforts' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "description": "Develop the new user authentication module.",
        "operatorId": "18xxxxxxxxxxxxxxx",
        "owner": "23xxxxxxxxxxxxxxx",
        "spentTime": 8.5,
        "workType": "development"
    }'

Region edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/projex/workitems/{id}/estimatedEfforts' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "description": "Develop the new user authentication module.",
        "operatorId": "18xxxxxxxxxxxxxxx",
        "owner": "23xxxxxxxxxxxxxxx",
        "spentTime": 8.5,
        "workType": "development"
    }'

Response parameters

Parameter

Type

Description

Example

-

object

The response object.

id

string

The ID of the estimated effort.

b1834b....738290

Response example

{
    "id": "b1834b....738290"
}

Error codes

For error codes, see the Error Code Center.