Group Update

Description

The group update operation allows you to update a group record. The group must be one of the group the current user is part of.

URI

REST URI [POST]:
/v11.02/Group.svc/Update?SessionId={sessionId}

Content-Type: Application/xml

Example

Request POST
http://wsdev.onegreatfamily.com/v11.02/Group.svc/Update?SessionId=gl4q23cwofpshi55sg1dvc3o
Request Headers
Content-Type: Application/xml
Request Payload
<Group xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<AdminUserName>UserWSAPI</AdminUserName>
	<AnchorOgfns xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
		<a:unsignedLong>0</a:unsignedLong>
	</AnchorOgfns>
	<GroupOgfn>0</GroupOgfn>
	<Name>groupWSAPI</Name>
	<Password>groupWSAPI</Password>
</Group>
Success Response Payload
<Result xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
	<Code>0</Code>
	<Message>Success</Message>
	<Value i:nil="true"/>
</Result> 
Failed Response Payload
<Result xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<Code>27001</Code>
	<Message>Your developer Id does not have permissions to make this call</Message>
</Result>
Fault Response Payload
<RestFault xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<ErrorCode>551</ErrorCode>
	<FaultMessage>An unhandled exception has occurred</FaultMessage>
</RestFault>

Query String Parameters

Name Description Required

SessionId

The current session Id

Type: string

Default: None

Yes

POST Payload

Name Description Required

Group

The Group record to be updated

Type: Group entity

Default: None

Constraints: Must be a valid entity.

Yes

Response Elements

Name Description

Result

This operation returns a Result Entity

Type: Result

Result.Value

Result.Value no value will be returned 

HTTP Status Code

The Web Server returns a status code which indicates if the operation was successful. Anything other than 200 should be regarded as a failure.

HTTP Status Code of 417

The Web Server threw an exception and contains a RestFault entity. Retrieve the RestFault from the Webexception response property.