{
"userID":"U7ECC74059E0FEDFEC66BF5AT00000000001",
"role":"viewer",
"message":"Changing your shared access rights to viewer."
}
{
"errorCode":"0",
"id":"F1321DC48E3B123D02DBEE88T0000000000100000001",
"members":[
{
"id":"U7ECC74059E0FEDFEC66BF5AT00000000001",
"displayName":"User BB",
"type":"user",
"isSuccessful":"1",
"provisioningStatus":"active"
}
],
"role":"viewer",
"type":"share",
"user":{
"id":"U7ECC74059E0FEDFEC66BF5AT00000000001",
"displayName":"User BB",
"type":"user"
}
}
PUT .../shares/F1321DC48E3B123D02DBEE88T0000000000100000001/role
{
"userID": "U7ECC74059E0FEDFEC66BF5AT00000000001,GS18003",
"role": "viewer",
"message": "Changing your shared access rights to viewer"
}
HTTP_STATUS = 200
{
"errorCode": "0",
"id": "F1321DC48E3B123D02DBEE88T0000000000100000001",
"members": [
{
"id": "U6A0B35B0548F250914D18FDB5D17B95F470",
"displayName": "User BB",
"type": "user",
"isSuccessful": "1",
"provisioningStatus": "active"
},
{
"id": "GS18003",
"displayName": "Sales Group",
"type": "group",
"isSuccessful": "1",
"provisioningStatus": "active"
}
],
"role": "viewer",
"type": "share",
"user": {
"id": "U6A0B35B0548F250914D18FDB5D17B95F470,GS18003",
"type": "user"
}
}
PUT .../shares/F2CD745706AEC8BD04260B2F45B3E9DD64907CA0D19F/role
{
"role": "viewer",
"message": "granting you shared access"
}
HTTP_STATUS = 400
{
"errorCode": "-97",
"errorKey": "!csUnableToEditSharingRole!csRequiredServiceParameterMissing,dUserID,EDIT_SHARING_ROLE",
"errorMessage": "Failed to change shared user role. Parameter 'dUserID' required by service EDIT_SHARING_ROLE is missing.",
"errorType": "share",
"id": "F2CD745706AEC8BD04260B2F45B3E9DD64907CA0D19F",
"role": "viewer",
"title": "Failed to change shared user role. Parameter 'dUserID' required by service EDIT_SHARING_ROLE is missing.",
"type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}
PUT .../shares/F2CCCC5706AEC8BD04260B2F45B3E9DD64907CA0D19F/role
{
"userID": "U5C4D5FCE14F2B44946FA74745B3E9DD6490",
"role": "manager"
}
HTTP_STATUS = 404
{
"errorCode": "-16",
"errorKey": "!csUnableToEditSharingRole!csSecurityValidationFailed!csFldDoesNotExist,F2CCCC5706AEC8BD04260B2F45B3E9DD64907CA0D19F!csUnprivilegedSystemError",
"errorMessage": "Failed to change shared user role. Security validation failed. 'F2CCCC5706AEC8BD04260B2F45B3E9DD64907CA0D19F' does not exist. The error was caused by an internally generated issue. The error has been logged.",
"errorType": "share",
"id": "F2CCCC5706AEC8BD04260B2F45B3E9DD64907CA0D19F",
"role": "manager",
"title": "Failed to change shared user role. Security validation failed. 'F2CCCC5706AEC8BD04260B2F45B3E9DD64907CA0D19F' does not exist. The error was caused by an internally generated issue. The error has been logged.",
"type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"user": {
"id": "U5C4D5FCE14F2B44946FA74745B3E9DD6490",
"type": "user"
}
}