POST api/v1.0/ResourceLibrary/AddRelatedLink?documentKey={documentKey}
Adds the specified URL as a RelatedLink to the specified Document.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| documentKey |
DocumentKey of the Document to which the Related Link should be added. |
globally unique identifier |
Required |
Body Parameters
URL to add as the Related Link.
RelatedLinkRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Url | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Url": "sample string 1"
}
application/xml, text/xml
Sample:
<RelatedLinkRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise.Request"> <Url>sample string 1</Url> </RelatedLinkRequest>
Response Information
Resource Description
RelatedLinkKey (Guid) of the newly created RelatedLink.
RelatedLink| Name | Description | Type | Additional information |
|---|---|---|---|
| RelatedLinkKey | globally unique identifier |
None. |
|
| ItemKey | globally unique identifier |
None. |
|
| Url | string |
None. |
|
| Contributor | ContactConcise |
None. |
|
| CreatedOn | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"RelatedLinkKey": "6153fd06-c1fa-47a4-812f-f5a08811fa59",
"ItemKey": "1ee84709-aebc-45c2-963f-0837c69a40af",
"Url": "sample string 3",
"Contributor": {
"LinkToProfile": "sample string 1",
"PictureUrl": "sample string 2",
"ContactKey": "b9ab76f4-2aa3-468f-9afa-87a1f456419c",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"DisplayName": "sample string 6",
"EmailAddress": "sample string 7",
"ContactStatusCode": "sample string 8",
"PrefixCode": "sample string 9",
"UpdatedOn": "2026-05-03T19:22:22.1847847Z",
"UpdatedByContactKey": "e61690a1-bed1-4947-a05d-170ae5009fc8",
"CompanyName": "sample string 12",
"CompanyTitle": "sample string 13",
"SuffixCode": "sample string 14",
"Designation": "sample string 15",
"LegacyContactKey": "sample string 16",
"InformalName": "sample string 17",
"MiddleName": "sample string 18",
"IsCompany": true,
"CompanyLegacyContactKey": "sample string 20",
"AMSDirectoryOptOut": true,
"HLDirectoryOptOut": true,
"HLContactMeOptOut": true,
"LargePictureUrl": "sample string 24",
"AgreedToTermsDateTime": "2026-05-03T19:22:22.1847847Z"
},
"CreatedOn": "2026-05-03T19:22:22.1847847Z"
}
application/xml, text/xml
Sample:
<RelatedLink xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
<Contributor>
<AMSDirectoryOptOut>true</AMSDirectoryOptOut>
<AgreedToTermsDateTime>2026-05-03T15:22:22.1847847-04:00</AgreedToTermsDateTime>
<CompanyLegacyContactKey>sample string 20</CompanyLegacyContactKey>
<CompanyName>sample string 12</CompanyName>
<CompanyTitle>sample string 13</CompanyTitle>
<ContactKey>b9ab76f4-2aa3-468f-9afa-87a1f456419c</ContactKey>
<ContactStatusCode>sample string 8</ContactStatusCode>
<Designation>sample string 15</Designation>
<DisplayName>sample string 6</DisplayName>
<EmailAddress>sample string 7</EmailAddress>
<FirstName>sample string 4</FirstName>
<HLContactMeOptOut>true</HLContactMeOptOut>
<HLDirectoryOptOut>true</HLDirectoryOptOut>
<InformalName>sample string 17</InformalName>
<IsCompany>true</IsCompany>
<LargePictureUrl>sample string 24</LargePictureUrl>
<LastName>sample string 5</LastName>
<LegacyContactKey>sample string 16</LegacyContactKey>
<LinkToProfile>sample string 1</LinkToProfile>
<MiddleName>sample string 18</MiddleName>
<PictureUrl>sample string 2</PictureUrl>
<PrefixCode>sample string 9</PrefixCode>
<SuffixCode>sample string 14</SuffixCode>
<UpdatedByContactKey>e61690a1-bed1-4947-a05d-170ae5009fc8</UpdatedByContactKey>
<UpdatedOn>2026-05-03T15:22:22.1847847-04:00</UpdatedOn>
</Contributor>
<CreatedOn>2026-05-03T15:22:22.1847847-04:00</CreatedOn>
<ItemKey>1ee84709-aebc-45c2-963f-0837c69a40af</ItemKey>
<RelatedLinkKey>6153fd06-c1fa-47a4-812f-f5a08811fa59</RelatedLinkKey>
<Url>sample string 3</Url>
</RelatedLink>