PATCH api/WorkTaskTemporary/{WorkTaskID}/CPRItemBelong?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
规则设置 修改
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
| WorkTaskID | globally unique identifier |
Required |
Body Parameters
CPRItemBelongDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| TID | globally unique identifier |
None. |
|
| ItemBelongName | string |
None. |
|
| IsCombo | boolean |
None. |
|
| WorkTaskID | globally unique identifier |
None. |
|
| Sequence | integer |
None. |
|
| FormulaMode | string |
None. |
|
| CPRItemID | globally unique identifier |
None. |
|
| ItemValue | string |
None. |
|
| CPRItemName | string |
None. |
|
| CPRItemBelongIDs | Collection of globally unique identifier |
None. |
|
| CPRItemBelong_CPRItemTID | globally unique identifier |
None. |
|
| GroupName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TID": "f6801186-8b51-434e-81f3-8125a6ae958c",
"ItemBelongName": "sample string 1",
"IsCombo": true,
"WorkTaskID": "f1ab783e-4a68-4e27-a079-67247340999e",
"Sequence": 1,
"FormulaMode": "sample string 2",
"CPRItemID": "a7303aae-0b6c-4b46-9ca8-cbee4adba0ce",
"ItemValue": "sample string 3",
"CPRItemName": "sample string 4",
"CPRItemBelongIDs": [
"f4345d06-5b30-45a1-8d2c-86b0665d2380",
"569ced55-668d-4872-8714-4fd1bf5081e6"
],
"CPRItemBelong_CPRItemTID": "824e00af-62db-48e0-9b7d-277e5b261ff0",
"GroupName": "sample string 5"
}
application/xml, text/xml
Sample:
<CPRItemBelongDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.WorkTaskTemporary">
<CPRItemBelongIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>f4345d06-5b30-45a1-8d2c-86b0665d2380</d2p1:guid>
<d2p1:guid>569ced55-668d-4872-8714-4fd1bf5081e6</d2p1:guid>
</CPRItemBelongIDs>
<CPRItemBelong_CPRItemTID>824e00af-62db-48e0-9b7d-277e5b261ff0</CPRItemBelong_CPRItemTID>
<CPRItemID>a7303aae-0b6c-4b46-9ca8-cbee4adba0ce</CPRItemID>
<CPRItemName>sample string 4</CPRItemName>
<FormulaMode>sample string 2</FormulaMode>
<GroupName>sample string 5</GroupName>
<IsCombo>true</IsCombo>
<ItemBelongName>sample string 1</ItemBelongName>
<ItemValue>sample string 3</ItemValue>
<Sequence>1</Sequence>
<TID>f6801186-8b51-434e-81f3-8125a6ae958c</TID>
<WorkTaskID>f1ab783e-4a68-4e27-a079-67247340999e</WorkTaskID>
</CPRItemBelongDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfListOfCPRItemBelongDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | Collection of CPRItemBelongDTO |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": [
{
"TID": "fc9992a1-a3df-4533-9ebe-bc04022cec1f",
"ItemBelongName": "sample string 1",
"IsCombo": true,
"WorkTaskID": "911abccb-85b6-4f06-b704-c5254e284182",
"Sequence": 1,
"FormulaMode": "sample string 2",
"CPRItemID": "53bd9b71-9f94-406f-a7a2-ccdc92f9d143",
"ItemValue": "sample string 3",
"CPRItemName": "sample string 4",
"CPRItemBelongIDs": [
"a8033fc4-c448-4ca6-8a5a-199c31a3ad00",
"62c3633b-07b8-4210-bd35-b7ef87494606"
],
"CPRItemBelong_CPRItemTID": "12d8b084-237e-451b-8010-0de5362cfd47",
"GroupName": "sample string 5"
},
{
"TID": "fc9992a1-a3df-4533-9ebe-bc04022cec1f",
"ItemBelongName": "sample string 1",
"IsCombo": true,
"WorkTaskID": "911abccb-85b6-4f06-b704-c5254e284182",
"Sequence": 1,
"FormulaMode": "sample string 2",
"CPRItemID": "53bd9b71-9f94-406f-a7a2-ccdc92f9d143",
"ItemValue": "sample string 3",
"CPRItemName": "sample string 4",
"CPRItemBelongIDs": [
"a8033fc4-c448-4ca6-8a5a-199c31a3ad00",
"62c3633b-07b8-4210-bd35-b7ef87494606"
],
"CPRItemBelong_CPRItemTID": "12d8b084-237e-451b-8010-0de5362cfd47",
"GroupName": "sample string 5"
}
]
}
application/xml, text/xml
Sample:
<ResultModelOfArrayOfCPRItemBelongDTOYWEC5V_S_S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility">
<Code>Success</Code>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO.WorkTaskTemporary">
<d2p1:CPRItemBelongDTO>
<d2p1:CPRItemBelongIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>a8033fc4-c448-4ca6-8a5a-199c31a3ad00</d4p1:guid>
<d4p1:guid>62c3633b-07b8-4210-bd35-b7ef87494606</d4p1:guid>
</d2p1:CPRItemBelongIDs>
<d2p1:CPRItemBelong_CPRItemTID>12d8b084-237e-451b-8010-0de5362cfd47</d2p1:CPRItemBelong_CPRItemTID>
<d2p1:CPRItemID>53bd9b71-9f94-406f-a7a2-ccdc92f9d143</d2p1:CPRItemID>
<d2p1:CPRItemName>sample string 4</d2p1:CPRItemName>
<d2p1:FormulaMode>sample string 2</d2p1:FormulaMode>
<d2p1:GroupName>sample string 5</d2p1:GroupName>
<d2p1:IsCombo>true</d2p1:IsCombo>
<d2p1:ItemBelongName>sample string 1</d2p1:ItemBelongName>
<d2p1:ItemValue>sample string 3</d2p1:ItemValue>
<d2p1:Sequence>1</d2p1:Sequence>
<d2p1:TID>fc9992a1-a3df-4533-9ebe-bc04022cec1f</d2p1:TID>
<d2p1:WorkTaskID>911abccb-85b6-4f06-b704-c5254e284182</d2p1:WorkTaskID>
</d2p1:CPRItemBelongDTO>
<d2p1:CPRItemBelongDTO>
<d2p1:CPRItemBelongIDs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:guid>a8033fc4-c448-4ca6-8a5a-199c31a3ad00</d4p1:guid>
<d4p1:guid>62c3633b-07b8-4210-bd35-b7ef87494606</d4p1:guid>
</d2p1:CPRItemBelongIDs>
<d2p1:CPRItemBelong_CPRItemTID>12d8b084-237e-451b-8010-0de5362cfd47</d2p1:CPRItemBelong_CPRItemTID>
<d2p1:CPRItemID>53bd9b71-9f94-406f-a7a2-ccdc92f9d143</d2p1:CPRItemID>
<d2p1:CPRItemName>sample string 4</d2p1:CPRItemName>
<d2p1:FormulaMode>sample string 2</d2p1:FormulaMode>
<d2p1:GroupName>sample string 5</d2p1:GroupName>
<d2p1:IsCombo>true</d2p1:IsCombo>
<d2p1:ItemBelongName>sample string 1</d2p1:ItemBelongName>
<d2p1:ItemValue>sample string 3</d2p1:ItemValue>
<d2p1:Sequence>1</d2p1:Sequence>
<d2p1:TID>fc9992a1-a3df-4533-9ebe-bc04022cec1f</d2p1:TID>
<d2p1:WorkTaskID>911abccb-85b6-4f06-b704-c5254e284182</d2p1:WorkTaskID>
</d2p1:CPRItemBelongDTO>
</Data>
<Message>sample string 1</Message>
</ResultModelOfArrayOfCPRItemBelongDTOYWEC5V_S_S>