C:\>curl -X POST -u admin:Pa$$w0rd "http://localhost:8282/dhis/api/translations/" -H "Content-Type: application/json" -d'{"id":"U5QzK3jiuKF", "objectId":"iJP7k1NOjJq", "className":"DataElement", "locale":"fa", "property":"name", "value":"demo name translation"}' -v Note: Unnecessary use of -X or --request, POST is already inferred. * Trying ::1... * Connected to localhost (::1) port 8282 (#0) * Server auth using Basic with user 'admin' > POST /dhis/api/translations/ HTTP/1.1 > Host: localhost:8282 > Authorization: Basic YWRtaW46UGEkJHcwcmQ= > User-Agent: curl/7.46.0 > Accept: */* > Content-Type: application/json > Content-Length: 17 > * upload completely sent off: 17 out of 17 bytes < HTTP/1.1 404 < X-XSS-Protection: 1; mode=block < X-Frame-Options: SAMEORIGIN < X-Content-Type-Options: nosniff < Set-Cookie: JSESSIONID=B67C478E7803087521A0166D53538CC6;path=/dhis;HttpOnly < Content-Type: text/html;charset=utf-8 < Content-Language: en < Content-Length: 990 < Date: Thu, 19 Jan 2017 05:56:11 GMT < Apache Tomcat/8.5.5 - Error report

HTTP Status 404 -

type Status report

message

description The requested resource is not available.


Apache Tomcat/8.5.5

* Connection #0 to host localhost left intact Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: objectId:iJP7k1NOjJq,/ * Could not resolve host: objectId * Closing connection 1 curl: (6) Could not resolve host: objectId Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: className:DataElement,/ * Could not resolve host: className * Closing connection 2 curl: (6) Could not resolve host: className Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: locale:fa,/ * Could not resolve host: locale * Closing connection 3 curl: (6) Could not resolve host: locale Note: Unnecessary use of -X or --request, POST is already inferred. * Rebuilt URL to: property:name,/ * Could not resolve host: property * Closing connection 4 curl: (6) Could not resolve host: property curl: (3) [globbing] unmatched close brace/bracket in column 28