PUT api/Relations/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

RelationsData
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

None.

Person

Gets or sets the person who has a relation.

PersonKeyData

None.

Relation

Gets or sets the relation type.

RelationType

None.

Relative

Gets or sets the relative.

PersonKeyData

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Person": {
    "FirstName": "sample string 1",
    "Initial": "sample string 2",
    "PersonId": 3,
    "SurName": "sample string 4",
    "Links": []
  },
  "Relation": {
    "Id": 1,
    "Name": "sample string 2"
  },
  "Relative": {
    "FirstName": "sample string 1",
    "Initial": "sample string 2",
    "PersonId": 3,
    "SurName": "sample string 4",
    "Links": []
  }
}

application/xml, text/xml

Sample:
<RelationsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/relation">
  <Id>1</Id>
  <Person xmlns:d2p1="http://worldcurling.org/statistics/data/personkeydata">
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:Initial>sample string 2</d2p1:Initial>
    <d2p1:PersonId>3</d2p1:PersonId>
    <d2p1:SurName>sample string 4</d2p1:SurName>
  </Person>
  <Relation xmlns:d2p1="http://worldcurling.org/statistics/data/relationtype">
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 2</d2p1:Name>
  </Relation>
  <Relative xmlns:d2p1="http://worldcurling.org/statistics/data/personkeydata">
    <Links xmlns:d3p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:Initial>sample string 2</d2p1:Initial>
    <d2p1:PersonId>3</d2p1:PersonId>
    <d2p1:SurName>sample string 4</d2p1:SurName>
  </Relative>
</RelationsData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.