Skip to main content
Solved

Flow Actions - is not a nested object on the

  • July 5, 2023
  • 3 replies
  • 84 views

Forum|alt.badge.img+2

In Klaviyo API Documentation Reference it gives an option to select nested objects for render_options and send_options (image below)

It also suggests to make a API call that theoretically should succeed:

curl --request GET \
--url 'https://a.klaviyo.com/api/flows/id/flow-actions/?fields[flow-action]=render_options.shorten_links,send_options.use_smart_sending&page[size]=50' \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'revision: 2023-06-15'

I just copied it from API Documentation.

But when I perform such request I get:

{
"errors": [
{
"id": "XXX",
"status": 400,
"code": "invalid",
"title": "Invalid input.",
"detail": "'render_options.shorten_links' is not a nested object on the 'flow-action' resource",
"source": {
"parameter": "fields"
},
"meta": {}
}
]
}

The same situation with EVERY nested field for render_options and send_options.

As soon as I remove those nested params API call succeeds.

Request for nested objects in other API resources, for example Campaign message succeeds (https://a.klaviyo.com/api/campaign-messages/XXX/?fields[campaign-message]=content.subject)

Best answer by Brian Turcotte

Hi @helloworldwillthisusernamefit!

My apologies for the delay here! Engineering is still looking into this - I will update the thread as soon as there is more information!

Best,

Brian

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • July 5, 2023

Hi @helloworldwillthisusernamefit!

I reached out to Engineering about this and I will update the thread as soon as possible!
 

Best,

Brian


Forum|alt.badge.img+2

Thank you Brian :)


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • July 12, 2023

Hi @helloworldwillthisusernamefit!

My apologies for the delay here! Engineering is still looking into this - I will update the thread as soon as there is more information!

Best,

Brian