Skip to main content

Update a Flow

PUT 

https://euwest.api.elasticpath.com/v2/flows/:flowID

  • For Commerce, this endpoint updates a flow.
  • For Product Experience Manager, this endpoint updates a template.

Specify whichever attributes you want to change. The values of the other attributes remain the same. If the attributes section is empty, the flow/template is not updated.

Request

Path Parameters

    flowID uuidrequired

    The unique identifier of the flow/template you want to update.

Bodyrequired

    data object
    descriptionstring

    A brief description of a flow/template outlining details such as purpose, usage instructions, and so on.

    enabledboolean
    namestring

    The name of a flow/template.

    iduuid

    A unique identifier for a resource.

    Example: 00000000-0000-0000-0000-000000000000
    slugstring

    A unique slug identifier for a flow/template.

    typestring

    Represents the type of object being returned.

Responses

Schema
    data object
    iduuid

    A unique identifier for a resource.

    Example: 00000000-0000-0000-0000-000000000000
    typestring

    A unique identifier for a flow/template.

    Example: flow
    namestring

    The name of a flow/template.

    Example: Products
    slugstring

    A unique identifier of a flow/template.

    Example: products
    descriptionstring

    A short description for a flow/template.

    Example: Extends the default product object
    enabledboolean
    Example: true
    links object

    Links allow you to move between requests. Single entities use a self parameter with a link to that specific resource. Listing pages use the following:

    PropertyDescription
    currentAlways the current page
    firstAlways the first page
    lastnull if there is only one page.
    prevnull if you are on the first page.
    nextnull if there is only one page.
    selfstring
    Example: https://euwest.api.elasticpath.com/v2/flows/d2a9b22a-b4b0-456b-bbc7-d8723aaffa84
    relationships object

    Relationships are established between different flows/templates entities. For example, a field and an entry are related to a flow as both are attached to it.

    fields object
    data object
    iduuid

    A unique identifier for a resource.

    Example: 00000000-0000-0000-0000-000000000000
    typestring

    Represents the type of object being returned.

    Example: brand
    meta object
    ownerstring

    The resource owner, either organization or store.

    Possible values: [store, organization]

    Example: enum
    timestamps object
    created_atstring

    The date and time a resource is created.

    Example: 2023-10-11T13:02:25.293Z
    updated_atstring

    The date and time a resource is updated.

    Example: 2023-10-11T13:02:25.293Z

Authorization: http

name: bearerAuthtype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://euwest.api.elasticpath.com/v2/flows/:flowID");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"data\": {\n \"description\": \"string\",\n \"enabled\": true,\n \"name\": \"string\",\n \"id\": \"00000000-0000-0000-0000-000000000000\",\n \"slug\": \"string\",\n \"type\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com
Auth
Parameters
— pathrequired
Body required
{
  "data": {
    "description": "string",
    "enabled": true,
    "name": "string",
    "id": "00000000-0000-0000-0000-000000000000",
    "slug": "string",
    "type": "string"
  }
}
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.