Get all Fields by Flow
GEThttps://euwest.api.elasticpath.com/v2/flows/:flowSlug/fields
Get all Fields by Flow
Request
Path Parameters
flowSlug stringrequired
The slug of the flow the entry belongs to.
Responses
- 200
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
- default
Schema
data object[]
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "string",
"field_type": "string",
"slug": "string",
"name": "string",
"description": "string",
"required": true,
"enabled": true,
"omit_null": true,
"validation_rules": [
{
"type": "enum",
"options": [
"string"
],
"to": "customer"
}
],
"meta": {
"owner": "enum",
"timestamps": {
"created_at": "2023-10-11T13:02:25.293Z",
"updated_at": "2023-10-11T13:02:25.293Z"
}
},
"links": {
"self": "https://euwest.api.elasticpath.com/v2/flows/3cf3ad3f-b12c-4a08-a6ab-05e6aab0122c/fields/c1c788d1-f1c7-4b90-938f-f158f3353c66"
},
"relationships": {
"flow": {
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"type": "flow"
}
}
}
}
]
}
{
"data": [
{
"id": "23d26fd2-d2e2-4c72-b4b4-3ef7a31bc47f",
"type": "field",
"field_type": "string",
"slug": "background_color",
"name": "background colors",
"description": "background color for the product",
"required": false,
"default": "#ffffff",
"enabled": true,
"validation_rules": [],
"order": null,
"omit_null": false,
"links": {
"self": "https://useast.api.elasticpath.com/v2/flows/248c7776-bd9f-4075-8980-461b02ed3757/fields/23d26fd2-d2e2-4c72-b4b4-3ef7a31bc47f"
},
"relationships": {
"flow": {
"data": {
"id": "248c7776-bd9f-4075-8980-461b02ed3757",
"type": "flow"
}
}
},
"meta": {
"owner": "organization",
"timestamps": {
"created_at": "2017-06-26T12:55:33.560Z",
"updated_at": "2017-12-19T12:31:24.570Z"
}
}
},
{
"id": "5f4be5bd-0c83-417a-b744-7d8c49636ab1",
"type": "field",
"field_type": "string",
"slug": "background_image",
"name": "Background Image",
"description": "The background image for the category",
"required": false,
"default": null,
"enabled": true,
"validation_rules": [],
"order": null,
"omit_null": false,
"links": {
"self": "https://useast.api.elasticpath.com/v2/flows/248c7776-bd9f-4075-8980-461b02ed3757/fields/5f4be5bd-0c83-417a-b744-7d8c49636ab1"
},
"relationships": {
"flow": {
"data": {
"id": "248c7776-bd9f-4075-8980-461b02ed3757",
"type": "flow"
}
}
},
"meta": {
"owner": "organization",
"timestamps": {
"created_at": "2018-03-29T10:33:24.056Z",
"updated_at": "2018-03-29T10:33:24.056Z"
}
}
}
]
}
Bad request. Not Found.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"title": "Not Found",
"status": 404
}
]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (auto)
- internal-server-error
Schema
errors Error[]required
{
"errors": [
{
"status": 500,
"title": "Internal server error",
"detail": "An internal error has occurred.",
"request_id": "00000000-0000-0000-0000-000000000000",
"meta": {
"missing_ids": [
"e7d50bd5-1833-43c0-9848-f9d325b08be8"
]
}
}
]
}
{
"errors": [
{
"status": 500,
"title": "Internal Server Error",
"detail": "There was an internal server error, you can report with your request id.",
"request_id": "635da56d-75a1-43cd-b696-7ab119756b3a"
}
]
}
Authorization: http
name: bearerAuthtype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/flows/:flowSlug/fields");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear