更新项目自身属性与自定义字段,以及项目状态
接口说明
更新项目自身属性与自定义字段,以及项目状态
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /organization/{organizationId}/project/{identifier}
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| organizationId | string | 是 | 企业 id | 5ebbc0228123212b59xxxxx | 
| identifier | string | 是 | 更新项目的唯一标识,项目 id | deafe5f33xxxxx6a259d8dafd | 
| body | object | 否 | 请求 Body | |
| updateBasicFieldRequestList | array<object> | 否 | 更新基础字段数组 | |
| object | 否 | 更新项目属性对象 | ||
| propertyKey | string | 否 | 项目基础属性 key 枚举值: 
 | name | 
| propertyValue | string | 否 | 更新后的值 | 名称 | 
| updateForOpenApiList | array<object> | 否 | 更新项目自定义字段数组 | |
| object | 否 | 更新项目自定义字段对象 | ||
| fieldIdentifier | string | 否 | 字段唯一标识 | c4fd21xxxxxxxx9oj8jk | 
| value | string | 否 | 字段值 | 字段值 | 
| statusIdentifier | string | 否 | 状态唯一标识 | fdsaadsfasxxxxdddd | 
返回参数
示例
正常返回示例
JSON格式
{
  "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"
      }
    ]
  }
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 403 | Operate.NoPermission | NoPermission | 没有权限 | 
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|
暂无变更历史
