UpdateProjectField

Updated at:

Updates the properties, custom fields, and status of a project.

Operation description

Updates the properties, custom fields, and status of a project.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /organization/{organizationId}/project/{identifier} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

The enterprise ID.

5ebbc0228123212b59xxxxx

identifier

string

Yes

The unique identifier of the project.

deafe5f33xxxxx6a259d8dafd

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

updateBasicFieldRequestList

array<object>

No

The array of basic fields to be updated.

object

No

The project property object to be updated.

propertyKey

string

No

The key of the basic project property.

Valid values:

  • scope :

    scope

  • name :

    name

  • description :

    description

  • customCode :

    customCode

name

propertyValue

string

No

The updated value.

Name

updateForOpenApiList

array<object>

No

The array of custom project fields to be updated.

object

No

The custom project field object to be updated.

fieldIdentifier

string

No

The unique identifier of the field.

c4fd21xxxxxxxx9oj8jk

value

string

No

The field value.

Field value

statusIdentifier

string

No

The unique identifier of the status.

fdsaadsfasxxxxdddd

Response elements

Element

Type

Description

Example

object

requestId

string

The request ID. Each request has a unique value for subsequent troubleshooting.

ASSDS-ASSASX-XSAXSA-XSAXSAXS

errorCode

string

The error code.

Openapi.RequestError

errorMessage

string

The error message.

errormessage

success

boolean

true/false

True

project

object

The project information.

category

string

The workspace category.

Project

categoryIdentifier

string

The workspace category ID. The value for a project is always Project.

Project

creator

string

The Alibaba Cloud account ID of the creator.

19xx7043xxxxxxx914

customCode

string

The custom code, which is unique within the enterprise.

OJAY

description

string

The description.

API test - Create

gmtCreate

integer

The creation timestamp, in milliseconds.

1623916393000

gmtModified

integer

The modification timestamp, in milliseconds.

1684134690000

iconGroup

string

The icon group, which is a JSON-formatted string.

{"small":"https://xxxxxx.png","big":"https://img.yyyyyy.png"}

icon

string

The icon.

https://xxxxxx.png

iconBig

string

The large icon.

https://xxxxxx.png

iconSmall

string

The small icon.

https://img.yyyyyy.png

id

string

The project ID.

66893

identifier

string

The unique identifier of the project.

1e2ea73d24652d5874d001b351

identifierPath

string

The workspace path.

e8b2xxxxxx2abdxxxxxxxx23

logicalStatus

string

The project status.

NORMAL

modifier

string

The Alibaba Cloud account ID of the modifier.

19xx7043xxxxxxx914

name

string

The project name.

Demo sample project

organizationIdentifier

string

The enterprise ID.

5e70xxxxxxcd000xxxxe96

parentIdentifier

string

The parent project ID.

null

scope

string

The visibility scope.

public

statusIdentifier

string

The status ID.

8a40xxxxxxxxxxxxx64

statusStageIdentifier

string

The status stage ID. Default project statuses include Not Started, In Progress, and Completed. This field specifies the exact ID of the status.

8a4058a71159b68254......

subType

string

The workspace subcategory.

null

typeIdentifier

string

[Deprecated] The workspace subcategory ID.

CustomProject

statusName

string

The status name.

In Progress

fieldList

array<object>

The field list.

object

The field object.

identifier

string

The field ID.

b787ff504c0b36f8b71d15a4fd

displayName

string

The display name.

In Progress

valueType

string

The field type.

user

value

string

The field value.

ace3wxxxxxxx7rff3ee

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorCode": "Openapi.RequestError",
  "errorMessage": "errormessage",
  "success": true,
  "project": {
    "category": "Project",
    "categoryIdentifier": "Project",
    "creator": "19xx7043xxxxxxx914",
    "customCode": "OJAY",
    "description": "api测试-创建",
    "gmtCreate": 1623916393000,
    "gmtModified": 1684134690000,
    "iconGroup": "{\"small\":\"https://xxxxxx.png\",\"big\":\"https://img.yyyyyy.png\"}",
    "icon": "https://xxxxxx.png",
    "iconBig": "https://xxxxxx.png",
    "iconSmall": "https://img.yyyyyy.png",
    "id": "66893",
    "identifier": "1e2ea73d24652d5874d001b351",
    "identifierPath": "e8b2xxxxxx2abdxxxxxxxx23",
    "logicalStatus": "NORMAL",
    "modifier": "19xx7043xxxxxxx914",
    "name": "demo示例项目",
    "organizationIdentifier": "5e70xxxxxxcd000xxxxe96",
    "parentIdentifier": "null",
    "scope": "public",
    "statusIdentifier": "8a40xxxxxxxxxxxxx64",
    "statusStageIdentifier": "8a4058a71159b68254......",
    "subType": "null",
    "typeIdentifier": "CustomProject",
    "statusName": "进行中",
    "fieldList": [
      {
        "identifier": "b787ff504c0b36f8b71d15a4fd",
        "displayName": "进行时",
        "valueType": "user",
        "value": "ace3wxxxxxxx7rff3ee"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Operate.NoPermission NoPermission You are not authorized to perform this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.