2 Replies Latest reply on Nov 25, 2013 7:53 AM by historian

    Trying to add members to the securityGroups

    historian

      First, let me say that while I'm technically savvy I'm pretty json/api dumb. But I'm here to learn.

       

      My issue is that I'm trying to pass in a User URI to the api using curl on a windows box. Here is what I'm attempting:

       

      curl -i -u admin:password --cacert bundle.crt -H "Content-Type: application/json" -H "Accept: application/json" -X POST --data {"/people/2006"} https://example.com/api/core/v3/securityGroups/1011/members
      
      
      
      

      -OR- Since it is looking for an array

      curl -i -u admin:password --cacert bundle.crt -H "Content-Type: application/json" -H "Accept: application/json" -X POST --data {["/people/2006"]} https://example.com/api/core/v3/securityGroups/1011/members
      
      
      
      

       

      This gives me a Server 500 error, every time. A GET worked fine, so I must being doing something odd when passing the data.

       

      Any help would be appreciated.