I am getting 400 error in api user

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yakup Karakaya
    Junior Member
    • Dec 2024
    • 8

    I am getting 400 error in api user

    Click image for larger version

Name:	image.png
Views:	41
Size:	35.4 KB
ID:	113504
    I am getting a 400 error on api user. How can I solve this?

    I am getting the following error on the log side.

    [2025-01-02 12:46:30] DEBUG: API (400) validationFailure; POST /User; Input data: {"type":"api","isActive":true,"teams":{"teamsId s":[]},"avatarId":null,"deleteId":"0","firstName":"ya ku p","lastName":"aycıl","teamsIds":[],"teamsNames":{},"teamsColumns":{},"defaultTeam Nam e":null,"defaultTeamId":null,"rolesIds":[],"rolesNames":{},"authMethod":"ApiKey"}; Route pattern: /{controller}; Route params: Array ( [controller] => User [action] => create )
    [2025-01-02 12:46:30] WARNING: (400) Field validation failure; entityType: User, field: userName, type: required. :: POST /User ​
  • yuri
    Member
    • Mar 2014
    • 8495

    #2
    Weird. It seems that you don't have the "User Name" field on the layout. Did you modify the layout somehow?
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Yakup Karakaya
      Junior Member
      • Dec 2024
      • 8

      #3
      No, I didn't make any changes. How can I solve this? yuri

      Comment

      • yuri
        Member
        • Mar 2014
        • 8495

        #4
        I don't know. It works for me. You need to find out why userName is not passed or unset somewhere (maybe in formula).
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • Yakup Karakaya
          Junior Member
          • Dec 2024
          • 8

          #5
          thank you.

          Comment

          Working...