Hi folk, I have encountered a problem using the ap...
# developers
j
Hi folk, I have encountered a problem using the api. I am trying to edit a user with the api call /users/id. Unfortunately I get the following error as response:
Copy code
{
  "issues": [
    {
      "code": "invalid_type",
      "expected": "string",
      "received": "undefined",
      "path": [
        "id"
      ],
      "message": "Required"
    },
    {
      "code": "unrecognized_keys",
      "keys": [
        "userId"
      ],
      "path": [],
      "message": "Unrecognized key(s) in object: 'userId'"
    }
  ],
  "name": "ZodError"
}
I know that the user I tried to get is exiting and called the api with the url: .../users/{id}
πŸ‘ 1
m
@Agusti
a
Hola Juan! Thank you very much for reporting this, It seems to me a bug introduced when renaming users[id] because of new availability to users[userId] Will fix asap and let you know here once it’s fixed.
πŸ‘ 1
Hey @Juan Jimenez Just fixed this, will deploy to production, should be working again as expected in a few minutes. Thanks again Juan
πŸ‘ 2
j
Yes it's working. Thank you πŸ™‚