Skip to main content
PATCH
https://{tenantDomain}/api/v2
/
flows
/
{id}
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Flows.UpdateAsync(
            id: "id",
            request: new UpdateFlowRequestContent()
        );
    }

}
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.UpdateFlowRequestContent{}
client.Flows.Update(
context.TODO(),
"id",
request,
)
}
package com.example.usage;

import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.resources.flows.requests.UpdateFlowRequestContent;

public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();

client.flows().update(
"id",
UpdateFlowRequestContent
.builder()
.build()
);
}
}
<?php

namespace Example;

use Auth0\SDK\API\Management\Management;
use Auth0\SDK\API\Management\Flows\Requests\UpdateFlowRequestContent;

$client = new Management(
token: '<token>',
);
$client->flows->update(
'id',
new UpdateFlowRequestContent([]),
);
from auth0.management import ManagementClient

client = ManagementClient(
token="<token>",
)

client.flows.update(
id="id",
)
require "auth0"

client = Auth0::Management.new(token: "<token>")

client.flows.update(id: "id")
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.update("id", {});
}
main();
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.flows.update("id", {});
}
main();
curl --request PATCH \
--url https://{tenantDomain}/api/v2/flows/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"actions": [
{
"id": "<string>",
"type": "ACTIVECAMPAIGN",
"action": "LIST_CONTACTS",
"params": {
"connection_id": "<string>",
"email": "<string>"
},
"alias": "<string>",
"allow_failure": true,
"mask_output": true
}
]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "actions": [
    {
      "id": "<string>",
      "type": "ACTIVECAMPAIGN",
      "action": "LIST_CONTACTS",
      "params": {
        "connection_id": "<string>",
        "email": "<string>"
      },
      "alias": "<string>",
      "allow_failure": true,
      "mask_output": true
    }
  ],
  "executed_at": "2023-12-25"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Flow identifier

Maximum string length: 30

Body

name
string
Required string length: 1 - 150
actions
object[] | null

Response

Flow successfully updated.

id
string<flow-id>
required
Maximum string length: 30
name
string
required
Required string length: 1 - 150
created_at
string<date-time>
required
updated_at
string<date-time>
required
actions
object[]
executed_at
string<date>