How can I set featured image via Write API?

Builder content link

Builder public api key
I am using Write API to update blog post.

What are you trying to accomplish
I want to set featured image from external URL via API.

I have tried several ways but neither worked.

# way 1
{
  data: {
    featuredImage: url
  }
}

# way 2
{
  data: {
    featuredImage: {
      url: url
    }
  }
}

Can you please help me how I can set featured image?

Hello @feng,

For the featuredImage field, you can set it by passing the value as a plain string in the Write API request. The correct format is:

{
  "data": {
    "featuredImage": "your-image-url-here"
  }
}

You don’t need to wrap it in an object—just provide the string directly.