REST API: Типы пользовательских полей
Материал из Planfix
В REST API можно получить список типов пользовательских полей c помощью метода /customfield/type.
ID | Название | |
---|---|---|
0 | Line | Строка |
1 | Number | |
2 | Text | |
3 | Date | |
4 | Time | |
5 | Date and time | |
6 | Period of time | |
7 | Checkbox | |
8 | List | |
9 | Directory entry | |
10 | Contact | |
11 | Employee | |
12 | Counterparty | |
13 | Group, employee, or contact | |
14 | List of users | |
15 | Set of directory values | |
16 | Task | |
17 | Task set | |
20 | Set of values | |
21 | Files | |
22 | Project | |
23 | Data tag summaries | |
24 | Calculated field | |
25 | Location | |
26 | Subtask total | |
27 | AI results field | |
28 | Date with time frame | |
29 | Totals field |
Пример
Запрос
curl -X 'GET' \ 'https://test.planfix.ru/rest/customfield/type' \ -H 'accept: application/json' \ -H 'Authorization: Bearer o4l3kwh6lkj43h6'
Ответ
{ "result": "success", "customFieldTypes": [ { "id": 0, "name": "Line" }, { "id": 1, "name": "Number" }, { "id": 2, "name": "Text" }, { "id": 3, "name": "Date" }, { "id": 4, "name": "Time" }, { "id": 5, "name": "Date and time" }, { "id": 6, "name": "Period of time" }, { "id": 7, "name": "Checkbox" }, { "id": 8, "name": "List" }, { "id": 9, "name": "Directory entry" }, { "id": 10, "name": "Contact" }, { "id": 11, "name": "Employee" }, { "id": 12, "name": "Counterparty" }, { "id": 13, "name": "Group, employee, or contact" }, { "id": 14, "name": "List of users" }, { "id": 15, "name": "Set of directory values" }, { "id": 16, "name": "Task" }, { "id": 17, "name": "Task set" }, { "id": 20, "name": "Set of values" }, { "id": 21, "name": "Files" }, { "id": 22, "name": "Project" }, { "id": 23, "name": "Data tag summaries" }, { "id": 24, "name": "Calculated field" }, { "id": 25, "name": "Location" }, { "id": 26, "name": "Subtask total" }, { "id": 27, "name": "AI results field" }, { "id": 28, "name": "Date with time frame" }, { "id": 29, "name": "Totals field" } ] }