Get all the facet values with REST API : "No content in POST request"

Hello,

I’m trying to get all the values for a facet I’ve made, named “metiers” (facetName) which has 5 values.
But when I’m trying to get these values in javascript (Nuxt/Vue) with a fetch like this:

fetch(
          `https://${$config.algolia.appId}-dsn.algolia.net/1/indexes/artisans/facets/metiers/query`,
          {
            headers,
            method: 'POST',
            body: JSON.stringify()
          }
)

I get this error:
{ message: 'No content in POST request', status: 400 }

A very similar fetch on my index artisans works well on the other hand:

fetch(
          `https://${$config.algolia.appId}-dsn.algolia.net/1/indexes/artisans/query`,
          {
            headers,
            method: 'POST',
            body: JSON.stringify({
              attributesToHighlight: []
            })
          }
        )

Any idea of what I’m missing here?

Thanks,

David

Okay, my mistake, it works with an empty object in JSON.stringify() :

fetch(
          `https://${$config.algolia.appId}-dsn.algolia.net/1/indexes/artisans/facets/metiers/query`,
          {
            headers,
            method: 'POST',
            body: JSON.stringify({})
          }
)