jsonapi-react icon indicating copy to clipboard operation
jsonapi-react copied to clipboard

PATCH doesn't include id field

Open erichaus opened this issue 2 years ago • 0 comments

When making a PATCH request, the jsonapi request body does not include the id field, which other jsonapi clients include.

PATCH /api/claims/abc-123

{
  "data": {
    "type": "claims",
    "attributes": {
      "redeemed_at": "2023-03-15T22:30:36.010Z"
    }
  }
}

How can I also include the id within the data prop?

erichaus avatar Mar 15 '23 22:03 erichaus