returns the AccessType for all the users in a shared folder
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| id | path |
| media type | data type | description |
|---|---|---|
| application/json | ACLList (JSON) |
GET /items/{id}/acls
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"acls" : [ {
"accessTypes" : [ "ADMINISTRATOR", "WRITE_OWNER" ],
"principal" : "..."
}, {
"accessTypes" : [ "WRITE_OWNER", "WRITE_ALL" ],
"principal" : "..."
} ]
}
Set a new AccessType for a user in a shared folder or VRE folder
| name | type | description | constraints |
|---|---|---|---|
| accessType | formdata | accessType | "ADMINISTRATOR" or "READ_ONLY" or "WRITE_ALL" or "WRITE_OWNER" |
| user | formdata | ||
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| id | path |
| media type | data type |
|---|---|
| multipart/form-data | (custom) |
PUT /items/{id}/acls
Content-Type: multipart/form-data
Authorization: ...
...
HTTP/1.1 204 No Content
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| id | path |
| media type | data type | description |
|---|---|---|
| application/json | boolean (JSON) |
GET /items/{id}/acls/write
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
remove right for a user only on Shared folder
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| id | path | |
| user | path |
DELETE /items/{id}/acls/{user}
Content-Type: text/plain
Authorization: ...
...
HTTP/1.1 204 No Content