AccountSharingRule
An object that represents a sharing rule for organizations when created.
Supported API Calls: List | Get | Add | Update | Delete
Object Properties
| 
			 Property  | 
			
			 Type  | 
			
			 Description  | 
		
| 
			 Id  | 
			
			 integer  | 
			
			 A unique ID for the share. When adding a new share the value must be 0.  | 
		
| 
			 GroupId  | 
			
			 integer  | 
			
			 The ID of the group doing the sharing.  | 
		
| 
			 UserOrGroupId  | 
			
			 integer  | 
			
			 ID of the user or group the object should be shared with.  | 
		
| 
			 UserType  | 
			
			 string (100)  | 
			
			 The value should always be group.  | 
		
| 
			 OrganizationAccessLevel  | 
			
			 string (100)  | 
			
			 Sets the user's access to a organization associated with this organization. Can be None, View Only, or Full Access.  | 
		
| 
			 AccountAccessLevel  | 
			
			 string (100)  | 
			
			 Sets the user's access to the organization. Can be None, View Only, or Full Access.  | 
		
| 
			 OpportunityAccessLevel  | 
			
			 string (100)  | 
			
			 Sets the user's access to an opportunity associated with this organization. Can be None, View Only, or Full Access.  | 
		
| 
			 CaseAccessLevel  | 
			
			 string (100)  | 
			
			 Sets the user's access to a case associated with this organization. Can be None, View Only, or Full Access.  | 
		
List
Description
Returns a list of sharing rules associated with the specified Organization
URL
https://{company}.bluecamroo.com/api/AccountSharingRule/list?Accountid={Accountid}
HTTP Method
GET
Parameters
None
Data Return
Returns a list of AccountSharingRule objects specified by AccountId in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
401: Not authorized (you need to log in)
Get
Returns details for the specified sharing rule.
URL
https://{company}.bluecamroo.com/api/AccountSharingRule/get/{id}?AccountId={AccountId}
HTTP Method
GET
Parameters
None
Data Return
Returns the AccountSharingRule object in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Add
Description
Adds an Organization sharing rule.
URL
https://{company}.bluecamroo.com/api/AccountSharingRule/add
HTTP Method
POST
Parameters
An AccountSharingRule object
Data Return
Returns the AccountSharingRule in the requested format (e.g., JSON or XML)
HTTP Return Status Code
201: Created
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Update
Description
Updates an AccountSharingRule object.
URL
https://{company}.bluecamroo.com/api/AccountSharingRule/update
HTTP Method
PUT
Parameters
An AccountSharingRule object
Data Return
Returns the AccountSharingRule in the requested format (e.g., JSON or XML)
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
Delete
Description
Deletes the sharing rule.
URL
https://{company}.bluecamroo.com/api/AccountSharingRule/delete/{id}?AccountId={AccountId}
HTTP Method
DELETE
Parameters
None
Data Return
None
HTTP Return Status Code
200: Ok
400: Bad Request (One or more input data items is not valid, for example a mandatory field is blank)
401: Not authorized (you need to log in)
403: Forbidden (you don't have permission to this resource)
							 
						 | 
					

