Get Started
Usage API
More information

PUT api/2.0/crm/{entityType}/customfield/reorder This function requires authentication

Description

Updates the order of the custom fields with a list specified in the request.

Parameters
Name Description Type Example
entityType
sent in url
Entity type
Allowed values: contact, person, company, opportunity, case
string some text
fieldids
sent in body
List of custom field IDs Collection of numbers
collection
1234
Example
PUT api/2.0/crm/%22some+text%22/customfield/reorder
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "fieldids": [
    1234
  ]
}
Returns

Custom fields in the new order

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "EntityId": 14523423,
      "Label": "Birthdate",
      "FieldValue": "2020-12-08T17:37:04.5916406Z",
      "FieldType": 5,
      "Position": 10,
      "Mask": "",
      "id": 1234
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <EntityId>14523423</EntityId>
    <Label>Birthdate</Label>
    <FieldValue>2020-12-08T17:37:04.5916406Z</FieldValue>
    <FieldType>5</FieldType>
    <Position>10</Position>
    <Mask />
    <id>1234</id>
  </response>
</result>