Individual Relationship Remove

Description

Allows removing a relationship for an individual

URI

REST URI [GET]:
/v11.02/Individual.svc/RemoveRelationship?SessionId={sessionId}&IndiOgfn={indiOgfn}&FamOgfn={famOgfn}&relationshipType={relationshipType}

Example

Request GET
http://wsdev.onegreatfamily.com/v11.02/Individual.svc/RemoveRelationship?SessionId=gl4q23cwofpshi55sg1dvc3o&IndiOgfn=225520075&FamOgfn=12312&RelationshipType=SIBLING_RELATIONSHIP
Success Response Payload
<Result xmlns="http://schemas.datacontract.org/2004/07/OGF.WS.Data">
	<Code>0</Code>
	<Message>Success</Message>
</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

IndiOgfn

The indi ogfn for the indi that is being removed from a relationship

Type: UInt64

Default: None

Constraints:

Yes

FamsOgfn

Only required when there is more than one fams or family where the indi is a spouse                  

Type: UInt64

Default: 1st and only FAMS

Constraints: Must be a valid family ID.

No

RelationshipType

The relationship type to add

Type: RelationshipType

Default: None

Constraints: Must be a valid RelationshipType.

Yes

SessionId

The current session Id

Type: string

Default: None

Yes

Response Elements

Name Description

Result

This operation returns a Result Entity

Type: Result

Result.Value

Result.Value will be nothing

Type: Nothing

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.