Send user id in Postman v4

System Information
  • Strapi V4

Im trying to set the user in postman but im missing something, because the user is always null
The object has a relation with user

 "attributes": {
    "type": {
      "type": "enumeration",
      "enum": [
        "deposit",
        "buy",
        "sell"
      ]
    },
    "user": {
      "type": "relation",
      "relation": "manyToOne",
      "target": "plugin::users-permissions.user",
      "inversedBy": "transactions"
    },

I have tried sendintg this from Postman, but doesn’t work.(its wokring fine in admin panel UI) Thankyou.

{"data":{
    "type":"deposit",
    "user":1
}
}

and

{"data":{
    "type":"deposit",
    "user":{"id":1}
}
}
1 Like

Solved… you must have enable the endpoint FIND in users.

1 Like