Users

Set the collection access level

Set the collection access level for the collection in the GeoFabric geoname for user user.

If access level for collection is not set default("*") access level is used. If default("*") access level is also not set GeoFabric access level is used.

Note: Requires administrator permissions.

put/_api/user/{user}/database/{geofabric}/collection/{collection}

Request

Path parameters

userstring string required

The id of the user.

geofabricstring string required

The name of the database.

collectionstring string required

The name of the collection.

Request body

grantstring required
  • Use "rw" to set the collection level access to Read/Write.
  • Use "ro" to set the collection level access to Read Only.
  • Use "none" to set the collection level access to No access.

Example request

{
  "grant": "rw"
}

Response

Successfully changed access permissions.

unknown required

Example response

{
  "code": 200,
  "error": false,
  "_system/testCollection": "ro"
}

Changes

No recorded changes to this operation across all 1 revision of this API.