---
title: "Invalidar link da publicação"
method: POST
path: "/api/management/form-publications/{form_publication}/change-token"
tags: ["form-publications", "change-token"]
---

# Invalidar link da publicação

`POST /api/management/form-publications/{form_publication}/change-token`

## Request

- Base URL: `https://api.olie.ai`
- URL: `https://api.olie.ai/api/management/form-publications/{form_publication}/change-token`
- Auth: HTTP bearer

Gera um novo token para o link público da publicação. O link anterior para de funcionar na hora, inclusive onde o formulário estiver incorporado. Ver [Publicações de formulários](https://docs.olie.ai/guides/forms/public-forms).

## Response `200`

Sucesso

- object: Novo token gerado.
  - `response` boolean: Indicador de sucesso da requisição. Sempre true nas respostas bem-sucedidas.
  - `new_token` string, uuid: Novo token do link público.

## Other responses

- `404`: Não encontrado

## Changes

- **2026-09-22** `d71b18b1685d`: 2 info
  - added the media type `application/json` for the response with the status `200`
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/olie-ai/apis/olie-api/changes/api/management/form-publications/:form_publication/change-token/post.md)

---

[API](https://skmtc.dev/olie-ai/apis/olie-api.md) · [All operations](https://skmtc.dev/olie-ai/apis/olie-api/llms.txt) · [OpenAPI document](https://skmtc.dev/olie-ai/apis/olie-api/revisions/fbae0c094507?raw)
