PUT api/2.0/crm/case/{caseid}
Updates the selected case with the parameters specified in the request.
Name |
Description |
Type |
Example |
caseid
sent in url
|
Case ID
|
number
|
1234
|
title
sent in body
|
New case title
|
string
|
some text
|
members
sent in body
|
New case participants
optional
|
Collection of numbers
collection
|
1234
|
customFieldList
sent in body
|
New list of case custom fields
optional
|
Collection of ASC.Api.Collections.ItemKeyValuePair`2[System.Int32,System.String]s
collection
|
|
isPrivate
sent in body
|
Case privacy: private or not
optional
|
Bool value
|
true
|
accessList
sent in body
|
New list of users with access to the case
optional
|
Collection of guids
collection
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
isNotify
sent in body
|
Notifies users from the access list about the case
optional
|
Bool value
|
true
|
Data transfer in application/json format:
data: {
caseid: 0,
title: "Exhibition organization",
isPrivate: false,
customFieldList: [{1: "value for text custom field with id = 1"}]
}
application/json
{
"status": 0,
"response": {
"createBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
},
"created": "2022-05-23T06:33:44.4216282Z",
"title": "Exhibition organization",
"isClosed": false,
"isPrivate": false,
"canEdit": true,
"customFields": [
{
"entityId": 14523423,
"label": "Birthdate",
"fieldValue": "2022-05-23T06:33:44.4216282Z",
"fieldType": 5,
"position": 10,
"mask": "",
"id": 0
}
],
"id": 0
}
}
text/xml
<result>
<status>0</status>
<response>
<createBy>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</createBy>
<created>2022-05-23T06:33:44.4216282Z</created>
<title>Exhibition organization</title>
<isClosed>false</isClosed>
<isPrivate>false</isPrivate>
<canEdit>true</canEdit>
<customFields>
<entityId>14523423</entityId>
<label>Birthdate</label>
<fieldValue>2022-05-23T06:33:44.4216282Z</fieldValue>
<fieldType>5</fieldType>
<position>10</position>
<mask></mask>
<id>0</id>
</customFields>
<id>0</id>
</response>
</result>