As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
jpotts-alfresco-mbp:~ jpotts$ curl -v -X POST "http://localhost:8080/alfresco/service/api/people?alf_ticket=TICKET_7284f7992fb43f9bd34ba25e8e5a49f79acd5ec4" -d@./temp.json -H "Content-type:application/json" * About to connect() to localhost port 8080 (#0) * Trying ::1… connected * Connected to localhost (::1) port 8080 (#0) > POST /alfresco/service/api/people?alf_ticket=TICKET_7284f7992fb43f9bd34ba25e8e5a49f79acd5ec4 HTTP/1.1 > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 > Host: localhost:8080 > Accept: */* > Content-type:application/json > Content-Length: 120 > < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Set-Cookie: JSESSIONID=2041120B8E555098B65351A91D15F890; Path=/alfresco < Cache-Control: no-cache < Pragma: no-cache < Content-Type: application/json;charset=UTF-8 < Content-Length: 590 < Date: Wed, 15 Feb 2012 21:26:16 GMT < { "url": "\/alfresco\/service\/api\/person\/50002", "userName": "50002", "enabled": true, "firstName": "firstName", "lastName": "lastName2", "jobtitle": null, "organization": null, "location": null, "telephone": null, "mobile": null, "email": "a@b.com", "companyaddress1": null, "companyaddress2": null, "companyaddress3": null, "companypostcode": null, "companytelephone": null, "companyfax": null, "companyemail": null, "skype": null, "instantmsg": null, "googleusername": null, "quota": -1, "sizeCurrent": 0, "persondescription": null } * Connection #0 to host localhost left intact * Closing connection #0
jpotts-alfresco-mbp:~ jpotts$ curl -v -uadmin:admin -X POST "http://localhost:8080/alfresco/service/api/people" -d@./temp.json -H "Content-type:application/json" * About to connect() to localhost port 8080 (#0) * Trying ::1… connected * Connected to localhost (::1) port 8080 (#0) * Server auth using Basic with user 'admin' > POST /alfresco/service/api/people HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5 > Host: localhost:8080 > Accept: */* > Content-type:application/json > Content-Length: 120 > < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Set-Cookie: JSESSIONID=A4900FD9AE3C9E97FCCCA5F7458E1A51; Path=/alfresco < Cache-Control: no-cache < Pragma: no-cache < Content-Type: application/json;charset=UTF-8 < Content-Length: 590 < Date: Wed, 15 Feb 2012 21:24:22 GMT < { "url": "\/alfresco\/service\/api\/person\/50001", "userName": "50001", "enabled": true, "firstName": "firstName", "lastName": "lastName1", "jobtitle": null, "organization": null, "location": null, "telephone": null, "mobile": null, "email": "a@b.com", "companyaddress1": null, "companyaddress2": null, "companyaddress3": null, "companypostcode": null, "companytelephone": null, "companyfax": null, "companyemail": null, "skype": null, "instantmsg": null, "googleusername": null, "quota": -1, "sizeCurrent": 0, "persondescription": null } * Connection #0 to host localhost left intact * Closing connection #0