Passer au contenu principal
PATCH
https://{tenantDomain}/api/v2
/
forms
/
{id}
Go
package example

import (
    context "context"

    management "github.com/auth0/go-auth0/management/management"
    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    request := &management.UpdateFormRequestContent{}
    client.Forms.Update(
        context.TODO(),
        "id",
        request,
    )
}
{
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "name": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "embedded_at": "2023-12-25",
  "ending": {
    "after_submit": {
      "flow_id": "<string>"
    },
    "coordinates": {
      "x": 0,
      "y": 0
    },
    "redirection": {
      "target": "<string>",
      "delay": 5
    }
  },
  "languages": {
    "default": "<string>",
    "primary": "<string>"
  },
  "messages": {
    "custom": {},
    "errors": {}
  },
  "nodes": [
    {
      "config": {
        "flow_id": "<string>",
        "next_node": "<string>"
      },
      "id": "<string>",
      "alias": "<string>",
      "coordinates": {
        "x": 0,
        "y": 0
      }
    }
  ],
  "start": {
    "coordinates": {
      "x": 0,
      "y": 0
    },
    "hidden_fields": [
      {
        "key": "<string>",
        "value": "<string>"
      }
    ],
    "next_node": "<string>"
  },
  "style": {
    "css": "<string>"
  },
  "submitted_at": "2023-12-25",
  "translations": {}
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

ID du formulaire à mettre à jour.

Maximum string length: 30

Corps

ending
object
languages
object
messages
object
name
string
Required string length: 1 - 150
nodes
object[] | null
start
object
style
object
translations
object

Réponse

Formulaire mis à jour avec succès.

created_at
string<date-time>
requis
id
string<form-id>
requis
Maximum string length: 30
name
string
requis
Required string length: 1 - 150
updated_at
string<date-time>
requis
embedded_at
string<date>
ending
object
languages
object
messages
object
nodes
object[]
start
object
style
object
submitted_at
string<date>
translations
object