Permission for data upload

#1

I need to write a permission to allow REST data upload with

curl -v -H "Content-Type: text/csv" -X PUT --data-binary @measurement.csv \
  https://sandbox.c3iot.com/import/1/sandbox/demo/CanonicalMeasurment/some-file-name \
  -u <username>:<password>

Is "allow:CanonicalMeasurement:create:" should be enough?

0 Likes

#2

Actually there is a role for data upload DataLoaderRole, I’ve just to add this role to the admin group assigned to my user:

{
  "id" : "ExternalApplicationGroup",
  "name" : "ExternalApplicationGroup",
  "roles" : [ {
    "id" : "ExternalApplicationUser"
  }, {
    "id" : "DataLoaderRole"
  } ]
}
0 Likes