---
agentTools:
  projectIndex: https://piperun-atendimentos.readme.io/llms.txt
---

# Adicionar hashtag em um atendimento

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Versão 1.0",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdominio}.cxm.pipe.run",
      "variables": {
        "subdominio": {
          "default": "subdominio"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/talk_hashtags": {
      "post": {
        "summary": "Adicionar hashtag em um atendimento",
        "description": "",
        "operationId": "adicionar-hashtag-em-um-atendimento",
        "parameters": [
          {
            "name": "talk_id",
            "in": "query",
            "description": "ID do atendimento",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "hashtag_id",
            "in": "query",
            "description": "ID da hashtag",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Accept",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": 1,\n  \"message\": \"Hashtag incluída com sucesso\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "integer",
                      "example": 1,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Hashtag incluída com sucesso"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"error\": \"Invalid token.\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "example": "Invalid token."
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "422",
            "content": {
              "application/json": {
                "examples": {
                  "Inconsistência nos dados enviados": {
                    "value": "{\n  \"message\": \"The given data was invalid.\",\n  \"errors\": {\n    \"hashtag_id\": [\n      \"O campo ID da hashtag é obrigatório.\"\n    ]\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "The given data was invalid."
                    },
                    "errors": {
                      "type": "object",
                      "properties": {
                        "hashtag_id": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "example": "O campo ID da hashtag é obrigatório."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request POST \\\n     --url 'https://{subdominio}.cxm.pipe.run/api/talk_hashtags?talk_id=10713&hashtag_id=13' \\\n     --header 'Accept: application/json' \\\n     --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxNCIsImp0aSI6ImFiNDIyNzkzNDA2MjhmM2MyMWQwMmVjM2ZlNmQxNzI4ZGYwZmNlYjllYzYzMmZhODIzNmEwMTI2ZTYzOThiYzkyMGViYjA1ZDQwZDdjYzU3IiwiaWF0IjoxNjczMjc0MDEzLjM2MDIyOCwibmJmIjoxNjczMjc0MDEzLjM2MDIzMywiZXhwIjoxNjczMzYwNDEzLjMwMjgwMSwic3ViIjoiMjAiLCJzY29wZXMiOltdfQ.Ukiiyhj9qVK0CYR7VOSBlSA6EGjAIkiWnt0C3z6r1acRF1nsbDKmpaZivoIn_YvXe1kCRAfqBL9CJaJSplfIqEWU15LbDW2tYIf4-YQSOUyKP7wz4CQIhMSESFa6GfRBpoSbNRzo0WLxVCJb3AMWDF0jVVJ0MLV-xOcGJN4CvypNRbKAn6V2DZqOZAXllfbw85Pbn2omN3ob7XM4v4oxT8pcnwp2PZPPJzwUMWahKMwQ3JW7EkdFzMoCiQBAP-y7KSERKcfj4b9-2YLVyoS5rUV4qWMSdGuIuO8fjOjkpj9pQabkA3e5uouw9jU7b9k7pwQXbXIuNKU2wIqoknFr3aPPGPHKYw1dfKANGZyadguPH3rZSfmkzdeWt9a3weBV1VANP0suPx8SzlJ_jz81JJhEu7gSVDeHhFP7QrWfQE1RLj5IMRS2ubWwFSCp1xXlgeOFPhtS1wzjF3C5s9RUdeGu43wmK26igxl_Gy6_3X5xqvLTS0am1kQ5uNgxdlujgjAwahn3SEwJgTw0pq-gNEbLvalkNJKPDUUBS6-XqavLx8kkLG4SBcu1_2ZoT7g-HFMJkKs-JM0rpxlshorgKXhbRUwQcRt5CgP93UooCsa1s6eCNfrk8nyIfddPpZsuDACsP8rBwujlUfAKDimidzkjXPeTnbRZb68ziiQOulw' \\\n     --header 'Content-Type: application/json' \\\n     --header 'accept: application/json'",
              "name": "200 - OK"
            }
          ],
          "samples-languages": [
            "curl"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      },
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "639b9eee56a9f8002b83200b:63a9f62892ee17006d9360ea"
}
```