PUT api/2.0/crm/contact/company/{companyid}
Updates the selected company with the parameters specified in the request.
Name |
Description |
Type |
Example |
companyid
sent in url
|
Company ID
|
number
|
1234
|
companyName
sent in body
|
New company name
|
string
|
some text
|
about
sent in body
|
New company description text
optional
|
string
|
some text
|
shareType
sent in body
|
New company privacy: 0 - not shared, 1 - shared for reading/writnig, 2 - shared for reading only
|
None, ReadWrite, Read
|
|
managerList
sent in body
|
New list of company managers
optional
|
Collection of guids
collection
|
9924256A-739C-462b-AF15-E652A3B1B6EB
|
customFieldList
sent in body
|
New custom field list
optional
|
Collection of ASC.Api.Collections.ItemKeyValuePair`2[System.Int32,System.String]s
collection
|
|
PUT api/2.0/crm/contact/company/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"companyName": "some text",
"about": "some text",
"shareType": "none",
"managerList": [
"00000000-0000-0000-0000-000000000000"
],
"customFieldList": [
{
"Key": 0,
"Value": null
}
]
}
application/json
{
"status": 0,
"response": {
"companyName": "Food and Culture Project",
"about": "",
"haveLateTasks": false,
"displayName": null,
"isCompany": true,
"isPrivate": true,
"isShared": false,
"shareType": 0,
"currency": null,
"canEdit": false,
"canDelete": false,
"id": 0
}
}
text/xml
<result>
<status>0</status>
<response>
<companyName>Food and Culture Project</companyName>
<about></about>
<haveLateTasks>false</haveLateTasks>
<displayName />
<isCompany>true</isCompany>
<isPrivate>true</isPrivate>
<isShared>false</isShared>
<shareType>0</shareType>
<currency />
<canEdit>false</canEdit>
<canDelete>false</canDelete>
<id>0</id>
</response>
</result>