PUT api/Relations
Update relation(s)
Request Information
URI Parameters
None.
Body Parameters
WorkPoint365.WebAPI.Model.UpdateRelationViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| BuilderRelations | Collection of WorkPoint365.WebAPI.Model.RelationItemBuilderViewModel |
None. |
|
| SourceListId | globally unique identifier |
Required |
|
| SourceItemId | integer |
Required |
|
| StepInputRelations | Collection of WorkPoint365.WebAPI.Model.RelationItemInputModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"BuilderRelations": [
{
"ListId": "3eae7f67-5858-4061-9e35-d95d3d806be1",
"EntityId": 2,
"title": "sample string 3",
"TargetRelationTypeId": 4,
"SourceRelationTypeId": 5,
"Responsible": {
"LookupId": 1,
"LookupValue": "sample string 2",
"Email": "sample string 3",
"UserPrincipalName": "sample string 4",
"PrincipalType": "sample string 5",
"SourceUrl": "sample string 6"
},
"StartDate": "2026-04-17T04:09:53.0699085+00:00",
"EndDate": "2026-04-17T04:09:53.0699085+00:00",
"Description": "sample string 6",
"RelationId": 7
},
{
"ListId": "3eae7f67-5858-4061-9e35-d95d3d806be1",
"EntityId": 2,
"title": "sample string 3",
"TargetRelationTypeId": 4,
"SourceRelationTypeId": 5,
"Responsible": {
"LookupId": 1,
"LookupValue": "sample string 2",
"Email": "sample string 3",
"UserPrincipalName": "sample string 4",
"PrincipalType": "sample string 5",
"SourceUrl": "sample string 6"
},
"StartDate": "2026-04-17T04:09:53.0699085+00:00",
"EndDate": "2026-04-17T04:09:53.0699085+00:00",
"Description": "sample string 6",
"RelationId": 7
}
],
"SourceListId": "fc00f627-54fb-47e8-bd91-1f9218d1cbda",
"SourceItemId": 2,
"StepInputRelations": [
{
"SourceRelationItem": [
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
},
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
}
],
"TargetRelationItems": [
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
},
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
}
],
"title": "sample string 1",
"TargetRelationTypeId": 2,
"SourceRelationTypeId": 3,
"Responsible": {
"LookupId": 1,
"LookupValue": "sample string 2",
"Email": "sample string 3",
"UserPrincipalName": "sample string 4",
"PrincipalType": "sample string 5",
"SourceUrl": "sample string 6"
},
"StartDate": "2026-04-17T04:09:53.0699085+00:00",
"EndDate": "2026-04-17T04:09:53.0699085+00:00",
"Description": "sample string 4",
"RelationId": 5
},
{
"SourceRelationItem": [
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
},
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
}
],
"TargetRelationItems": [
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
},
{
"Id": 1,
"Title": "sample string 2",
"ListId": "d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa"
}
],
"title": "sample string 1",
"TargetRelationTypeId": 2,
"SourceRelationTypeId": 3,
"Responsible": {
"LookupId": 1,
"LookupValue": "sample string 2",
"Email": "sample string 3",
"UserPrincipalName": "sample string 4",
"PrincipalType": "sample string 5",
"SourceUrl": "sample string 6"
},
"StartDate": "2026-04-17T04:09:53.0699085+00:00",
"EndDate": "2026-04-17T04:09:53.0699085+00:00",
"Description": "sample string 4",
"RelationId": 5
}
]
}
application/xml, text/xml
Sample:
<UpdateRelationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint365.WebAPI.Model">
<SourceItemId>2</SourceItemId>
<SourceListId>fc00f627-54fb-47e8-bd91-1f9218d1cbda</SourceListId>
<StepInputRelations>
<RelationItemInputModel>
<Description>sample string 4</Description>
<EndDate>2026-04-17T04:09:53.0699085+00:00</EndDate>
<RelationId>5</RelationId>
<Responsible>
<Email>sample string 3</Email>
<LookupId>1</LookupId>
<LookupValue>sample string 2</LookupValue>
<PrincipalType>sample string 5</PrincipalType>
<SourceUrl>sample string 6</SourceUrl>
<UserPrincipalName>sample string 4</UserPrincipalName>
</Responsible>
<SourceRelationTypeId>3</SourceRelationTypeId>
<StartDate>2026-04-17T04:09:53.0699085+00:00</StartDate>
<TargetRelationTypeId>2</TargetRelationTypeId>
<Title>sample string 1</Title>
<SourceRelationItem>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
</SourceRelationItem>
<TargetRelationItems>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
</TargetRelationItems>
</RelationItemInputModel>
<RelationItemInputModel>
<Description>sample string 4</Description>
<EndDate>2026-04-17T04:09:53.0699085+00:00</EndDate>
<RelationId>5</RelationId>
<Responsible>
<Email>sample string 3</Email>
<LookupId>1</LookupId>
<LookupValue>sample string 2</LookupValue>
<PrincipalType>sample string 5</PrincipalType>
<SourceUrl>sample string 6</SourceUrl>
<UserPrincipalName>sample string 4</UserPrincipalName>
</Responsible>
<SourceRelationTypeId>3</SourceRelationTypeId>
<StartDate>2026-04-17T04:09:53.0699085+00:00</StartDate>
<TargetRelationTypeId>2</TargetRelationTypeId>
<Title>sample string 1</Title>
<SourceRelationItem>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
</SourceRelationItem>
<TargetRelationItems>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
<RelationModel>
<Id>1</Id>
<ListId>d4df44a2-05b1-49fb-8a7e-fb7edab6ecaa</ListId>
<Title>sample string 2</Title>
</RelationModel>
</TargetRelationItems>
</RelationItemInputModel>
</StepInputRelations>
<BuilderRelations>
<RelationItemBuilderViewModel>
<Description>sample string 6</Description>
<EndDate>2026-04-17T04:09:53.0699085+00:00</EndDate>
<RelationId>7</RelationId>
<Responsible>
<Email>sample string 3</Email>
<LookupId>1</LookupId>
<LookupValue>sample string 2</LookupValue>
<PrincipalType>sample string 5</PrincipalType>
<SourceUrl>sample string 6</SourceUrl>
<UserPrincipalName>sample string 4</UserPrincipalName>
</Responsible>
<SourceRelationTypeId>5</SourceRelationTypeId>
<StartDate>2026-04-17T04:09:53.0699085+00:00</StartDate>
<TargetRelationTypeId>4</TargetRelationTypeId>
<Title>sample string 3</Title>
<EntityId>2</EntityId>
<ListId>3eae7f67-5858-4061-9e35-d95d3d806be1</ListId>
</RelationItemBuilderViewModel>
<RelationItemBuilderViewModel>
<Description>sample string 6</Description>
<EndDate>2026-04-17T04:09:53.0699085+00:00</EndDate>
<RelationId>7</RelationId>
<Responsible>
<Email>sample string 3</Email>
<LookupId>1</LookupId>
<LookupValue>sample string 2</LookupValue>
<PrincipalType>sample string 5</PrincipalType>
<SourceUrl>sample string 6</SourceUrl>
<UserPrincipalName>sample string 4</UserPrincipalName>
</Responsible>
<SourceRelationTypeId>5</SourceRelationTypeId>
<StartDate>2026-04-17T04:09:53.0699085+00:00</StartDate>
<TargetRelationTypeId>4</TargetRelationTypeId>
<Title>sample string 3</Title>
<EntityId>2</EntityId>
<ListId>3eae7f67-5858-4061-9e35-d95d3d806be1</ListId>
</RelationItemBuilderViewModel>
</BuilderRelations>
</UpdateRelationViewModel>
Response Information
Resource Description
System.Web.Http.IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.