Flows
A Flow describes a collection of Fields. It is named after the internal entity type you wish to associate it with. For example a Flow with a slug of products
will be applied to all Product responses in your store.
The flow object
Attribute | Type | Description |
|
| The unique identifier for this flow. |
|
| Represents the type of object being returned |
|
| The name of the flow |
|
| A unique slug identifier for the flow |
|
| Any description for this flow |
|
|
|
Get a Flow
GET
https://api.moltin.com/v2/flows/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The ID for the flow you are requesting |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Create a Flow
POST
https://api.moltin.com/v2/flows
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API. |
Request Body
Name | Type | Description |
---|---|---|
enabled | boolean |
|
description | string | Any description for this flow |
slug | string | A unique slug identifier for the flow |
name | string | The name of the flow |
type | string | Represents the type of object being returned. |
Update a Flow
PUT
https://api.moltin.com/v2/flows/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The ID for the flow you are changing. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API. |
Request Body
Name | Type | Description |
---|---|---|
id | string | The ID of the flow you're requesting |
type | string | Represents the type of object being returned |
name | string | The name of the flow |
slug | string | A unique slug identifier for this flow |
description | string | Any description for this flow |
enabled | string |
|
Delete a Flow
DELETE
https://api.moltin.com/v2/flows/:id
Path Parameters
Name | Type | Description |
---|---|---|
id | string | The ID for the field you are requesting to be deleted |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Last updated