GetPersonOwnCols

Function returns all custom columns and their values for the given person

POST https://rest.crmango.com/api/GetPersonOwnCols

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

1 Sent in the request body
person_id integer

Person id - Reference: GetAllPersons

Response

5 HTTP 200

Function returns all custom columns and their values for the given person.

id_own_col integer

Own column id

data_type varchar

Data type

parameters varchar

Available parameters

name varchar

Input name

data varchar

Data in input

Example request

curl --request POST \
  --url 'https://rest.crmango.com/api/GetPersonOwnCols' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    "person_id": "integer"
  }'
{
    "code": 200,
    "response": {
        "1": {
            "id_own_col": 1,
            "data_type": "text",
            "parameters": "",
            "name": "Test input",
            "data": "This is text"
        },
        "2": {
            "id_own_col": 2,
            "data_type": "date",
            "parameters": "",
            "name": "Date input",
            "data": "2022-07-13"
        },
        "3": {
            "id_own_col": 3,
            "data_type": "listbox",
            "parameters": "Apple;Orange;Pear",
            "name": "Fruits",
            "data": "Orange"
        },
        "5": {
            "id_own_col": 5,
            "data_type": "listbox",
            "parameters": "XLS;PDF;CSV;HTML",
            "name": "Formats",
            "data": "CSV"
        },
        "7": {
            "id_own_col": 7,
            "data_type": "checkbox",
            "parameters": "",
            "name": "Allowed?",
            "data": 1
        }
    }
}