| name | type | description |
|---|---|---|
| defaultAccessType | form | |
| mapUserPermission | form | |
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| id | path |
| media type | data type |
|---|---|
| application/x-www-form-urlencoded | (custom) |
| media type | data type | description |
|---|---|---|
| application/json | string (JSON) |
POST /items/{id}/share
Content-Type: application/x-www-form-urlencoded
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description | constraints | multivalued |
|---|---|---|---|---|
| accessType | formdata | "ADMINISTRATOR" or "READ_ONLY" or "WRITE_ALL" or "WRITE_OWNER" | no | |
| users | formdata | yes | ||
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | no | |
| id | path | no |
| media type | data type |
|---|---|
| multipart/form-data | (custom) |
| media type | data type | description |
|---|---|---|
| application/json | string (JSON) |
PUT /items/{id}/share
Content-Type: multipart/form-data
Accept: application/json
Authorization: ...
...
HTTP/1.1 204 No Content
Content-Type: application/json
...
| name | type | description | multivalued |
|---|---|---|---|
| users | formdata | yes | |
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | no |
| id | path | no |
| media type | data type |
|---|---|
| multipart/form-data | (custom) |
| media type | data type | description |
|---|---|---|
| application/json | string (JSON) |
PUT /items/{id}/unshare
Content-Type: multipart/form-data
Accept: application/json
Authorization: ...
...
HTTP/1.1 204 No Content
Content-Type: application/json
...