POST api/2.0/crm/contact/type This function requires authentication

Description

Creates a new contact type with the parameters specified in the request.

Parameters
Name Description Type Example
title
sent in body
Contact type title string some text
sortOrder
sent in body
Contact type sort order number 1234
Example
POST api/2.0/crm/contact/type
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "title": "some text",
  "sortOrder": 1234
}
Returns

Contact type

Example Response

application/json

{
  "status": 0,
  "response": {
    "RelativeItemsCount": 1,
    "id": 1234,
    "Title": "Title",
    "Description": "Description",
    "Color": "#a7fc00",
    "SortOrder": 1
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <RelativeItemsCount>1</RelativeItemsCount>
    <id>1234</id>
    <Title>Title</Title>
    <Description>Description</Description>
    <Color>#a7fc00</Color>
    <SortOrder>1</SortOrder>
  </response>
</result>