Images field requires a name after giving hypi.id to post-> Images field

I’m giving hypi.id to post-> Images field but this Images field requires a name. When I give a name then in the Images table a new entry is created. Meaning 1 entry is created when I submit an image using curl, and another is created again when I give this image hypi.id in post.

Post: [
          {
            description: ""
            createdBy: {user: {hypi: {id: "01ER1RFX5FGKA8NPND4NN9ENF0"}}}
            images:[
              {
                name:"new Img"
                file:{
                  hypi:{
                    id:"01ERH1TK48AFXN73WXMMXFA8ZW"
                  }
                }
              }
            ]
          }
        ]

You are providing the ID of the file, not the image. The only reason that name is required is that it thinks you’re trying to create a new image.

All you need is:

Post: [
         {
           description: ""
           createdBy: {user: {hypi: {id: "01ER1RFX5FGKA8NPND4NN9ENF0"}}}
           images:[
             {
               hypi:{
                   id:"01ERH1TK48AFXN73WXMMXFA8ZW"
                 }
             }
           ]
         }
       ]