---
agentTools:
  projectIndex: https://atendare.readme.io/llms.txt
---

# Listar atribuições de grupos

[block:code]
{
  "codes": [
    {
      "code": "GET - 200\n\n{\n  \"total\": 1,\n  \"page_index\": 0,\n  \"page_size\": 15,\n  \"results\": [\n    {\n      \"id\": 1,\n      \"group_id\": 1,\n      \"group\": {\n        \"id\": 1,\n        \"name\": \"Nome do gropo\",\n        \"status\": 1,\n        \"author_id\": 1,\n        \"creation_date\": \"2020-11-17T12:53:05Z\",\n        \"update_date\": \"2020-11-17T12:53:05Z\"\n      },\n      \"author_id\": 1,\n      \"person_id\": 1,\n      \"creation_date\": \"2020-11-18T16:57:07Z\"\n    }\n  ]\n}",
      "language": "json"
    }
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/{type}/{type_id}/groups": {
      "get": {
        "summary": "Listar atribuições de grupos",
        "description": "",
        "operationId": "list-group-assignment",
        "parameters": [
          {
            "name": "page_index",
            "in": "query",
            "description": "Para paginação, representa o primeiro elemento da lista.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "Para paginação, define o total de contatos que ira ser retornado em uma lista. O limite é 100",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 15
            }
          },
          {
            "name": "search_text",
            "in": "query",
            "description": "Termo usado para pesquisar",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort_order",
            "in": "query",
            "description": "Tipo de ordenação crescente (ASC) ou decrescente (DESC), o padrão é crescente",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "properties": {
                "condition": {
                  "type": "string",
                  "description": "Or - And"
                },
                "conditions": {
                  "type": "array",
                  "items": {
                    "properties": {
                      "field": {
                        "type": "string",
                        "description": "Campo que você deseja filtrar"
                      },
                      "operation": {
                        "type": "string",
                        "enum": [
                          "equal",
                          "not_equal",
                          "less",
                          "less_or_equal",
                          "greater",
                          "greater_or_equal",
                          "begins_with",
                          "does_not_begin_with",
                          "is_in",
                          "is_not_in",
                          "ends_with",
                          "does_not_end_with",
                          "contains",
                          "does_not_contains",
                          "is_empty",
                          "is_not_empty",
                          "between",
                          "does_not_between"
                        ]
                      },
                      "value": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                }
              },
              "type": "object"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "Tipos que a tag pode estar relacionada: qualifications (Qualificação), deals (Negociação), companies (Empresa), contacts (Contatos).",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "type_id",
            "in": "path",
            "description": "ID do tipo. Exemplo: deals (Negociação)",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          },
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"total\": 1,\n  \"page_index\": 0,\n  \"page_size\": 15,\n  \"results\": [\n    {\n      \"id\": 1,\n      \"group_id\": 1,\n      \"group\": {\n        \"id\": 1,\n        \"name\": \"Nome do gropo\",\n        \"status\": 1,\n        \"author_id\": 1,\n        \"creation_date\": \"2020-11-17T12:53:05Z\",\n        \"update_date\": \"2020-11-17T12:53:05Z\"\n      },\n      \"author_id\": 1,\n      \"person_id\": 1,\n      \"creation_date\": \"2020-11-18T16:57:07Z\"\n    }\n  ]\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "total": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "page_index": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "page_size": {
                      "type": "integer",
                      "example": 15,
                      "default": 0
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "group_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "group": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Nome do gropo"
                              },
                              "status": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "author_id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "creation_date": {
                                "type": "string",
                                "example": "2020-11-17T12:53:05Z"
                              },
                              "update_date": {
                                "type": "string",
                                "example": "2020-11-17T12:53:05Z"
                              }
                            }
                          },
                          "author_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "person_id": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "creation_date": {
                            "type": "string",
                            "example": "2020-11-18T16:57:07Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:6269868764e4fe003e2427c4"
}
```