- 概述
- 鉴权
- 全局
- 产品管理 Product
- 项目管理 Project
- 项目
- Scrum
- Kanban
- 瀑布
- 工作项
- 发布
- 项目配置中心
- 项目配置
- 工作项配置
- 创建一个工作项标签POST
- 部分更新一个工作项标签PATCH
- 获取全部工作项标签列表GET
- 删除一个工作项标签DELETE
- 创建一个工作项类型POST
- 部分更新一个工作项类型PATCH
- 获取全部工作项类型列表GET
- 删除一个工作项类型DELETE
- 创建一个工作项状态POST
- 部分更新一个工作项状态PATCH
- 获取全部工作项状态列表GET
- 向 状态方案中添加一个工作项状态POST
- 获取状态方案中的工作项状态列表GET
- 在状态方案中移除一个工作项状态DELETE
- 向状态方案中添加一个工作项状态流转POST
- 获取状态方案中的工作项状态流转列表GET
- 在状态方案中移除一个工作项状态流转DELETE
- 创建一个工作项属性POST
- 部分更新一个工作项属性PATCH
- - 获取一个工作项属性GET
- 获取全部工作项属性列表GET
- 获取工作项属性方案列表GET
- 向属性方案中添加一个工作项属性POST
- 获取属性方案中的工作项属性列表GET
- 在属性方案中移除一个工作项属性DELETE
- 测试管理 Testhub
- 知识管理 Wiki
- DevOps 数据集成
部分更新一个工作项属性
PATCH
https://open.pingcode.com/v1/project/work_item_properties/{property_id}
最后修改时间:2024-02-01 02:45:44
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
property_id
string
必需
示例值:
jiliandanxuan
Body 参数application/json
name
string
必需
type
string
必需
options
array [object {2}]
可选
text
string
必需
children
string
可选
示例
{
"name": "级联单选-update",
"options": [
{
"_id": "65815ac65c83d02e0790c247",
"text": "父级 1"
},
{
"_id": "65815ac65c83d02e0790c248",
"text": "父级 2"
},
{
"_id": "65815ac65c83d02e0790c249",
"text": "父级 3"
},
{
"_id": "65815ac65c83d02e0790c24a",
"text": "父级 4"
},
{
"_id": "65815ac65c83d02e0790c24b",
"text": "父级 5"
},
{
"_id": "65815ac65c83d02e0790c24c",
"text": "父级 6"
},
{
"_id": "65815ac65c83d02e0790c24d",
"text": "层级 2",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65815ac65c83d02e0790c24e",
"text": "层级 3",
"parent_id": "65815ac65c83d02e0790c24d"
},
{
"_id": "65815ac65c83d02e0790c24f",
"text": "层级 4",
"parent_id": "65815ac65c83d02e0790c24e"
},
{
"_id": "65951b442b2c280471328488",
"text": "1",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c280471328489",
"text": "2",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848a",
"text": "3",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848b",
"text": "4",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848c",
"text": "5",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848d",
"text": "6",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951c2b96faf2d8b41bcfea",
"text": "1",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfeb",
"text": "2",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfec",
"text": "3",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfed",
"text": "4",
"parent_id": "65815ac65c83d02e0790c248"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://open.pingcode.com/v1/project/work_item_properties/jiliandanxuan' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "级联单选-update",
"options": [
{
"_id": "65815ac65c83d02e0790c247",
"text": "父级 1"
},
{
"_id": "65815ac65c83d02e0790c248",
"text": "父级 2"
},
{
"_id": "65815ac65c83d02e0790c249",
"text": "父级 3"
},
{
"_id": "65815ac65c83d02e0790c24a",
"text": "父级 4"
},
{
"_id": "65815ac65c83d02e0790c24b",
"text": "父级 5"
},
{
"_id": "65815ac65c83d02e0790c24c",
"text": "父级 6"
},
{
"_id": "65815ac65c83d02e0790c24d",
"text": "层级 2",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65815ac65c83d02e0790c24e",
"text": "层级 3",
"parent_id": "65815ac65c83d02e0790c24d"
},
{
"_id": "65815ac65c83d02e0790c24f",
"text": "层级 4",
"parent_id": "65815ac65c83d02e0790c24e"
},
{
"_id": "65951b442b2c280471328488",
"text": "1",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c280471328489",
"text": "2",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848a",
"text": "3",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848b",
"text": "4",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848c",
"text": "5",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951b442b2c28047132848d",
"text": "6",
"parent_id": "65815ac65c83d02e0790c247"
},
{
"_id": "65951c2b96faf2d8b41bcfea",
"text": "1",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfeb",
"text": "2",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfec",
"text": "3",
"parent_id": "65815ac65c83d02e0790c248"
},
{
"_id": "65951c2b96faf2d8b41bcfed",
"text": "4",
"parent_id": "65815ac65c83d02e0790c248"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}