REST API Типы пользовательских полей: различия между версиями

Материал из Planfix
Перейти к: навигация, поиск
Нет описания правки
Нет описания правки
Строка 28: Строка 28:
| style="padding: 0 20px" | 7 || style="padding: 0 30px 0 5px; text-align: left;" | Checkbox || style="padding: 0 30px 0 5px; text-align: left;" | Чекбокс
| style="padding: 0 20px" | 7 || style="padding: 0 30px 0 5px; text-align: left;" | Checkbox || style="padding: 0 30px 0 5px; text-align: left;" | Чекбокс
|-
|-
| style="padding: 0 20px" | 8 || style="padding: 0 30px 0 5px; text-align: left;" | List || style="padding: 0 30px 0 5px; text-align: left;" | список
| style="padding: 0 20px" | 8 || style="padding: 0 30px 0 5px; text-align: left;" | List || style="padding: 0 30px 0 5px; text-align: left;" | Список
|-
|-
| style="padding: 0 20px" | 9 || style="padding: 0 30px 0 5px; text-align: left;" | Directory entry || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 9 || style="padding: 0 30px 0 5px; text-align: left;" | Directory entry || style="padding: 0 30px 0 5px; text-align: left;" | -
|-
|-
| style="padding: 0 20px" | 10 || style="padding: 0 30px 0 5px; text-align: left;" | Contact || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 10 || style="padding: 0 30px 0 5px; text-align: left;" | Contact || style="padding: 0 30px 0 5px; text-align: left;" | Контакт
|-
|-
| style="padding: 0 20px" | 11 || style="padding: 0 30px 0 5px; text-align: left;" | Employee || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 11 || style="padding: 0 30px 0 5px; text-align: left;" | Employee || style="padding: 0 30px 0 5px; text-align: left;" | -
|-
|-
| style="padding: 0 20px" | 12 || style="padding: 0 30px 0 5px; text-align: left;" | Counterparty || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 12 || style="padding: 0 30px 0 5px; text-align: left;" | Counterparty || style="padding: 0 30px 0 5px; text-align: left;" | Контрагент
|-
|-
| style="padding: 0 20px" | 13 || style="padding: 0 30px 0 5px; text-align: left;" | Group, employee, or contact || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 13 || style="padding: 0 30px 0 5px; text-align: left;" | Group, employee, or contact || style="padding: 0 30px 0 5px; text-align: left;" | Группа, сотрудник или контакт
|-
|-
| style="padding: 0 20px" | 14 || style="padding: 0 30px 0 5px; text-align: left;" | List of users || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 14 || style="padding: 0 30px 0 5px; text-align: left;" | List of users || style="padding: 0 30px 0 5px; text-align: left;" | Line
Строка 44: Строка 44:
| style="padding: 0 20px" | 15 || style="padding: 0 30px 0 5px; text-align: left;" | Set of directory values || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 15 || style="padding: 0 30px 0 5px; text-align: left;" | Set of directory values || style="padding: 0 30px 0 5px; text-align: left;" | Line
|-
|-
| style="padding: 0 20px" | 16 || style="padding: 0 30px 0 5px; text-align: left;" | Task || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 16 || style="padding: 0 30px 0 5px; text-align: left;" | Task || style="padding: 0 30px 0 5px; text-align: left;" | Задача
|-
|-
| style="padding: 0 20px" | 17 || style="padding: 0 30px 0 5px; text-align: left;" | Task set || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 17 || style="padding: 0 30px 0 5px; text-align: left;" | Task set || style="padding: 0 30px 0 5px; text-align: left;" | Набор задач
|-
|-
| style="padding: 0 20px" | 20 || style="padding: 0 30px 0 5px; text-align: left;" | Set of values || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 20 || style="padding: 0 30px 0 5px; text-align: left;" | Set of values || style="padding: 0 30px 0 5px; text-align: left;" | Набор значений
|-
|-
| style="padding: 0 20px" | 21 || style="padding: 0 30px 0 5px; text-align: left;" | Files || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 21 || style="padding: 0 30px 0 5px; text-align: left;" | Files || style="padding: 0 30px 0 5px; text-align: left;" | Файлы
|-
|-
| style="padding: 0 20px" | 22 || style="padding: 0 30px 0 5px; text-align: left;" | Project || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 22 || style="padding: 0 30px 0 5px; text-align: left;" | Project || style="padding: 0 30px 0 5px; text-align: left;" | Проект
|-
|-
| style="padding: 0 20px" | 23 || style="padding: 0 30px 0 5px; text-align: left;" | Data tag summaries || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 23 || style="padding: 0 30px 0 5px; text-align: left;" | Data tag summaries || style="padding: 0 30px 0 5px; text-align: left;" | -
|-
|-
| style="padding: 0 20px" | 24 || style="padding: 0 30px 0 5px; text-align: left;" | Calculated field || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 24 || style="padding: 0 30px 0 5px; text-align: left;" | Calculated field || style="padding: 0 30px 0 5px; text-align: left;" | Вычисляемое поле
|-
|-
| style="padding: 0 20px" | 25 || style="padding: 0 30px 0 5px; text-align: left;" | Location || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 25 || style="padding: 0 30px 0 5px; text-align: left;" | Location || style="padding: 0 30px 0 5px; text-align: left;" | Местоположение
|-
|-
| style="padding: 0 20px" | 26 || style="padding: 0 30px 0 5px; text-align: left;" | Subtask total || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 26 || style="padding: 0 30px 0 5px; text-align: left;" | Subtask total || style="padding: 0 30px 0 5px; text-align: left;" | Line
|-
|-
| style="padding: 0 20px" | 27 || style="padding: 0 30px 0 5px; text-align: left;" | AI results field || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 27 || style="padding: 0 30px 0 5px; text-align: left;" | AI results field || style="padding: 0 30px 0 5px; text-align: left;" | Результат обучения
|-
|-
| style="padding: 0 20px" | 28 || style="padding: 0 30px 0 5px; text-align: left;" | Date with time frame || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 28 || style="padding: 0 30px 0 5px; text-align: left;" | Date with time frame || style="padding: 0 30px 0 5px; text-align: left;" | -
|-
|-
| style="padding: 0 20px" | 29 || style="padding: 0 30px 0 5px; text-align: left;" | Totals field || style="padding: 0 30px 0 5px; text-align: left;" | Line
| style="padding: 0 20px" | 29 || style="padding: 0 30px 0 5px; text-align: left;" | Totals field || style="padding: 0 30px 0 5px; text-align: left;" | Суммарное поле
|}
|}



Версия от 13:06, 20 сентября 2024

В 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 Line
15 Set of directory values Line
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 Line
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"
    }
  ]
}

Перейти