Creating this topic on behalf of Maxwell Carey (mcarey@ucar.edu). Here's an email he sent the CMR client developer list:
I'd like to create a tag as described in the documentation here: https://cmr.earthdata.nasa.gov/search/site/search_api_docs.html#tagging
I managed to create an ECHO token but when I try to create a tag, I get a 401 Unauthorized response:$ cat tag_generator.json
{
"namespace": "edu.ucar.climatedataguide",
"value": "test",
"originator-id": "mcarey"
}
$ curl -XPOST -i -H "Content-Type: application/json" -H "Echo-Token: XXXXX" https://cmr.earthdata.nasa.gov/search/tags -d @tag_generator.json
HTTP/1.1 401 Unauthorized
Date: Fri, 08 Jan 2016 20:58:41 GMT
Content-Type: application/json
Access-Control-Allow-Origin: *
Content-Length: 58
Server: Jetty(9.2.z-SNAPSHOT)
{"errors":["You do not have permission to create a tag."]}
(Actual ECHO token redacted above.) How do I get permission to create tags in CMR? The documentation says "Access to tags is granted through the TAG_ACL system object identity. Users can only create, update, or delete a tag if they are granted the appropriate permission in ECHO," but I can't figure out where/how to set permissions in ECHO.
Overview
Content Tools