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

# Editar ligação

Adiciona uma nova nota

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/calls": {
      "patch": {
        "summary": "Editar ligação",
        "description": "Adiciona uma nova nota",
        "operationId": "edit-calls",
        "parameters": [
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "assignments"
                ],
                "properties": {
                  "status": {
                    "type": "string",
                    "description": "Status da chamada:<br/>Discando = 1,<br/>Chamando = 2,<br/>Encerrada = 3,<br/>Não atendida = 4,<br/>Falhou = 5,<br/>Ocupado = 6,<br/>Congestionado = 7,<br/>Sem retorno = 8",
                    "enum": [
                      "1",
                      "2",
                      "3",
                      "4",
                      "5",
                      "6",
                      "7",
                      "8"
                    ]
                  },
                  "duration": {
                    "type": "string",
                    "description": "Duração da chamada, formato: \"HH:mm:ss\""
                  },
                  "duration_seconds": {
                    "type": "integer",
                    "description": "Duração da chamada em segundos",
                    "format": "int64"
                  },
                  "assignments": {
                    "type": "array",
                    "description": "Onde a nota será vinculada",
                    "items": {
                      "properties": {
                        "contact_id": {
                          "type": "integer",
                          "description": "ID do contato",
                          "format": "int64"
                        },
                        "company_id": {
                          "type": "integer",
                          "description": "ID da empresa",
                          "format": "int64"
                        },
                        "qualification_id": {
                          "type": "integer",
                          "description": "ID da qualificação",
                          "format": "int64"
                        },
                        "deal_id": {
                          "type": "integer",
                          "description": "ID da negociação",
                          "format": "int64"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "user_id": {
                    "type": "integer",
                    "description": "ID do usuário responsável no Atendare",
                    "format": "int64"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"success\": true,\n\t\"data\": {\n\t\t\"id\": 1\n\t}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n\t\"success\": false\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": false,
                      "default": true
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:640201e526c0ac05b737ab72"
}
```