PUT api/v1/portals/{portalUid}/customer/referralsources/{referralSourceGuid}

Updates the referral source.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
portalUid

The customer portal

globally unique identifier

Required

referralSourceGuid

The referral source GUID.

globally unique identifier

Required

Body Parameters

The referral source.

ReferralSource
NameDescriptionTypeAdditional information
Code

The code for the referral source

string

Required

String length: inclusive between 0 and 6

Name

The name of the referral source.

string

Required

String length: inclusive between 0 and 100

Description

The referral source description

string

Required

String length: inclusive between 0 and 200

Company

The company we are creating this source within If no company is set eclipse will default to the first company in the portal

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "Company": "a30b346d-3445-4715-8795-437ab2996ea7"
}

application/xml, text/xml

Sample:
<ReferralSource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
  <Code>sample string 1</Code>
  <Company>a30b346d-3445-4715-8795-437ab2996ea7</Company>
  <Description>sample string 3</Description>
  <Name>sample string 2</Name>
</ReferralSource>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns udpated referral source.

ReferralSourceViewModel
NameDescriptionTypeAdditional information
Name

The name.

string

None.

Description

The description.

string

None.

Code

The description.

string

None.

ReferralSourceGuid

The unique identifier for the referral source

globally unique identifier

None.

Uid

The GUID.

globally unique identifier

None.

Links

The links.

Collection of Link

None.

DateUpdated

Last time the record was updated

date

None.

UpdatedBy

Who updated the record last

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "Code": "sample string 3",
  "ReferralSourceGuid": "5a0bbd23-48d2-48ca-87eb-4f625f49f13e",
  "Uid": "066c8531-1986-444c-aea5-6960476e5ebb",
  "Links": [
    {
      "Href": "http://webapihelppage1.com",
      "Method": "sample string 2",
      "Rel": "sample string 3",
      "Title": "sample string 4",
      "Type": "sample string 5"
    },
    {
      "Href": "http://webapihelppage1.com",
      "Method": "sample string 2",
      "Rel": "sample string 3",
      "Title": "sample string 4",
      "Type": "sample string 5"
    }
  ],
  "DateUpdated": "2025-10-27T13:13:48.1789163+00:00",
  "UpdatedBy": "sample string 6"
}

application/xml, text/xml

Sample:
<ReferralSourceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.ViewModels">
  <DateUpdated>2025-10-27T13:13:48.1789163+00:00</DateUpdated>
  <Links xmlns:d2p1="http://schemas.datacontract.org/2004/07/Eclipse.WebApi.Common.Models">
    <d2p1:Link>
      <d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
      <d2p1:Method>sample string 2</d2p1:Method>
      <d2p1:Rel>sample string 3</d2p1:Rel>
      <d2p1:Title>sample string 4</d2p1:Title>
      <d2p1:Type>sample string 5</d2p1:Type>
    </d2p1:Link>
    <d2p1:Link>
      <d2p1:Href>http://webapihelppage1.com/</d2p1:Href>
      <d2p1:Method>sample string 2</d2p1:Method>
      <d2p1:Rel>sample string 3</d2p1:Rel>
      <d2p1:Title>sample string 4</d2p1:Title>
      <d2p1:Type>sample string 5</d2p1:Type>
    </d2p1:Link>
  </Links>
  <Uid>066c8531-1986-444c-aea5-6960476e5ebb</Uid>
  <UpdatedBy>sample string 6</UpdatedBy>
  <Code>sample string 3</Code>
  <Description>sample string 2</Description>
  <Name>sample string 1</Name>
  <ReferralSourceGuid>5a0bbd23-48d2-48ca-87eb-4f625f49f13e</ReferralSourceGuid>
</ReferralSourceViewModel>