DELETE /teams/{teamId}/forms/{formId}
Soft-delete (preserva submissions)
- Access: Team member
- Service:
https://api-forms.axuz.net
Accepted authentication
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Seta deleted_at; slug volta ao pool via partial unique index.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
teamId | path | string | yes | |
formId | path | string | yes |
Responses
204
Removido
400
Parâmetro/body inválido
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
401
Sem auth ou JWT inválido
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Sem forms:write no team (missing_permission: forms:write; guest é read-only, W-012 S-3).
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Recurso não encontrado
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
429
Limite de requisições excedido.
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
500
Erro inesperado
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
503
PDP (auth_api) indisponível; fechado, com Retry-After (permission_check_unavailable).
| Name | Type | Required | Description |
|---|---|---|---|
error | string | yes |
Examples
"Try it" is turned off in this reference. Use the examples with your test credential.
curl
curl -sS -X DELETE 'https://api-forms.axuz.net/teams/TEAM_ID/forms/FORM_ID' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://api-forms.axuz.net/teams/TEAM_ID/forms/FORM_ID", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"DELETE",
"https://api-forms.axuz.net/teams/TEAM_ID/forms/FORM_ID",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())