PUT request what am I missing?

    context.env.NUXT_PUBLIC_HEADLESS_CMS_URL +
      "/api/notifications/" +
      body.metadata.notificationID,
    {
      method: "PUT",
      headers: {
        Authorization: `Bearer ${context.env.STRAPI_API_TOKEN}`,
        "content-Type": "application/json",
      },
      body: {
        data: {
          shown: true,
          errorFrontend: { "body.eventError": "no" },
        },
      },
    },
  )```
response 
```Response {
  [Symbol(realm)]: null,
  [Symbol(state)]: {
    aborted: false,
    rangeRequested: false,
    timingAllowPassed: true,
    requestIncludesCredentials: true,
    type: 'default',
    status: 400,
    timingInfo: {
      startTime: 111455.23030000925,
      redirectStartTime: 0,
      redirectEndTime: 0,
      postRedirectStartTime: 111455.23030000925,
      finalServiceWorkerStartTime: 0,
      finalNetworkResponseStartTime: 0,
      finalNetworkRequestStartTime: 0,
      endTime: 0,
      encodedBodySize: 107,
      decodedBodySize: 107,
      finalConnectionTimingInfo: null
    },
    cacheState: '',
    statusText: 'Bad Request',
    headersList: HeadersList {
      cookies: null,
      [Symbol(headers map)]: [Map],
      [Symbol(headers map sorted)]: null
    },
    urlList: [ URL {} ],
    body: { stream: undefined }
  },
  [Symbol(headers)]: HeadersList {
    cookies: null,
    [Symbol(headers map)]: Map(14) {
      'content-security-policy' => [Object],
      'referrer-policy' => [Object],
      'strict-transport-security' => [Object],
      'x-content-type-options' => [Object],
      'x-dns-prefetch-control' => [Object],
      'x-download-options' => [Object],
      'x-frame-options' => [Object],
      'x-permitted-cross-domain-policies' => [Object],
      'vary' => [Object],
      'content-type' => [Object],
      'content-length' => [Object],
      'date' => [Object],
      'connection' => [Object],
      'keep-alive' => [Object]
    },
    [Symbol(headers map sorted)]: null
  }
}

This topic has been created from a Discord post (1224705307767345243) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord