---
title: "Roles (Pipedrive)"
description: "Role"
language: cs
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/cs/datamodels/pipedrive/Pipedrive.Users.Roles
original: https://documentation.invantive.eu/en/datamodels/pipedrive/Pipedrive.Users.Roles
updated: 2026-12-04T16:05:08Z
license: https://documentation.invantive.eu/cs/
---

# Roles: Pipedrive Roles

`insert` `update` `delete` `REST`

- Katalog: `Pipedrive`
- Schéma: `Users`
- Primární klíče: `id`
- Popisek: Role

Pomocí `insert`, `update` a `delete` lze načítat a měnit data.

## Shrnutí

The roles users can have. Each request costs 20 tokens of the daily budget of the company.

## Zdroj API

- Koncový bod: `/roles`

## Sloupce tabulky

Sloupce tabulky `Roles` jsou uvedeny níže. Každý sloupec má datový typ SQL. Pro každý požadovaný sloupec musí být vždy během vkládání a aktualizace zadána nová hodnota, která není nulová (non-null).

| Jméno | Datový typ | Štítek | Vyžadováno | Značky | Dokumentace |
|---|---|---|:---:|---|---|
| `active_flag` | `char` | Příznak „Aktivní“ | [ ] | filtry na platformě, zapisovatelné, vypočítané, `active_flag` | Whether the role is active or not. |
| `assignment_count` | `varchar2` | Počet úkolů | [ ] | filtry na platformě, zapisovatelné, vypočítané, `assignment_count` | The number of users assigned to this role. |
| `id` | `int64` | ID | [x] | filtry na platformě, zapisovatelné, vypočítané, `id` | The ID of the role. |
| `level` | `int64` | Úroveň | [ ] | filtry na platformě, zapisovatelné, vypočítané, `level` | The level of role in the role hierarchy. |
| `name` | `varchar2` | Jméno | [ ] | filtry na platformě, zapisovatelné, `name` | The name of the role. |
| `parent_role_id` | `int64` | ID role rodiče | [ ] | filtry na platformě, zapisovatelné, `parent_role_id` | The ID of the parent role. |
| `sub_role_count` | `varchar2` | Počet dílčích rolí | [ ] | filtry na platformě, zapisovatelné, vypočítané, `sub_role_count` | The number of sub-roles. |

## Klíče

| Klíč | Sloupec | Vztahuje se k | Druh | Popis |
|---|---|---|---|---|
| `Roles_parent_role_id_fk` | `parent_role_id` | [Roles](Pipedrive.Users.Roles)`.id` | Klíč |  |

## Odkazuje na

- [CurrentUsers](Pipedrive.Users.CurrentUsers) `role_id` (Key)
- [Roles](Pipedrive.Users.Roles) `parent_role_id` (Key)
- [Uživatelé](Pipedrive.Users.Users) `role_id` (Klíč)
