Skip to main content

Create an Entry

POST 

/v2/flows/:flowSlug/entries

  • For Commerce, this endpoint creates an entry for a flow.
  • For Product Experience Manager, this endpoint creates an entry for a template.

Request

Path Parameters

    flowSlug stringrequired

    The slug for the flow/template you want to create an entry for.

Body

required
    data object

    Specifies the type of the resource object.

    FIELD_SLUG string

    Where FIELD_SLUG is the slug for each field/attribute on this flow/template along with the corresponding value. You must provide a field slug and a value for the entry. You can have multiple field slugs if they are related to the flow/template.

    type string

    Represents the type of object being returned.

Responses

Created

Schema
    data object
    id uuid

    A unique identifier for a resource.

    type string

    Represents the type of object being returned.

    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.
    self string
    meta object
    owner string

    Possible values: [store, organization]

    The resource owner, either organization or store.

    timestamps object
    created_at string

    The date and time a resource is created.

    updated_at string

    The date and time a resource is updated.

    property name* string

    There can be a :fieldSlug attribute for each field/attribute attached to a flow/template. The type depends on the field type.

Loading...