Grants access for team, groups and/or individual users.

Descriptions of available object Permissions are listed here

The following are the examples of HTTP status codes including errors that API can generate

Response codesResponse contentDescription
200 OKThe access to the object was granted successfully.
400 Bad RequestCan't delete access from the owner of teamYou can't change access permissions for the user with 'Owner' role if you are making requests on behalf of the 'Owner'.
400 Bad RequestCan't delete access from owner objectYou can't change access permissions for the user if you are making requests on behalf of this user
400 Bad RequestYou can't share non team objects.The object key that was specified does not belong to your team.
400 Bad RequestInvalid access valueThe permission that was specified is invalid.
400 Bad RequestBlocked access is not supported for Team'Blocked' Permission couldn't be specified for the 'AccessOfTeam' parameter.
403 ForbiddenAccess deniedAccess to the object is denied.
404 Not FoundObject not foundThe group or user ID that was specified doesn't exists.
Language
Authorization
Click Try It! to start a request and see the response here!