User

Update an existing user account and profile. The Follr profile consists of an address, phone numbers, websites, education history, employment history, social network profiles and chat/messenger services. Please refer to the data field dictionary for a complete list of fields, optionality, data types and size limits.

Any first name, last name, email, password and address information will be replaced with the new information. Any phone number, website, education history, employment history, social network profile and chat/messenger service information will be appended to the existing profile.

Details

URL
https://partner.follrdev.com/user/
Method
PUT

XML Example

Request Url

https://partner.follrdev.com/user/update

Request Payload

<UserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Follr.API.Models">
    <Address>
        <City>Emeryville</City>
        <Country>US</Country>
        <Line1>101 Changed St</Line1>
        <Line2 />
        <Line3 />
        <PostalCode>94608</PostalCode>
        <State>CA</State>
    </Address>
    <EducationHistory>
        <Education>
            <Degree>Bachelor of Science</Degree>
            <Description>Graduated with high honors.</Description>
            <EndYear>1998</EndYear>
            <FieldOfStudy>Chemistry</FieldOfStudy>
            <School>California State University</School>
            <StartYear>1994</StartYear>
        </Education>
    </EducationHistory>
    <EmploymentHistory>
        <Employment>
            <Description>Lead chemical engineer of the new uber drug research team</Description>
            <Employer>Pharma Company, Inc.</Employer>
            <EndMonth>4</EndMonth>
            <EndYear>2012</EndYear>
            <IndustryId>18</IndustryId>
            <Position>Chemical Engineer</Position>
            <StartMonth>1</StartMonth>
            <StartYear>2012</StartYear>
            <Url>http://pharmaco.com</Url>
        </Employment>
    </EmploymentHistory>
    <Links>
        <Link>
            <Label />
            <ServiceId>3</ServiceId>
            <Url>http://www.linkedin.com/in/johnnydoe</Url>
        </Link>
    </Links>
    <Messengers>
        <Messenger>
            <MessengerId>3</MessengerId>
            <ScreenName>johnnydoe</ScreenName>
        </Messenger>
    </Messengers>
    <PhoneNumbers>
        <PhoneNumber>
            <Label>Fax</Label>
            <Number>510-555-1200</Number>
            <PhoneNumberType>2</PhoneNumberType>
        </PhoneNumber>
    </PhoneNumbers>
    <Profile>
        <Biography>But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?</Biography>
        <Introduction>There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain.</Introduction>
        <Photo />
        <ProfessionalSummary>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</ProfessionalSummary>
        <Title>Senior Chemical Engineer</Title>
    </Profile>
    <User>
        <Email>johnnydoe@example.com</Email>
        <FirstName>Johnny</FirstName>
        <Id>2UH2MT</Id>
        <LastName>Doe</LastName>
        <Password />
        <ProfileUrl />
    </User>
    <Websites>
        <Website>
            <Label>Yahoo</Label>
            <Url>http://yahoo.com</Url>
        </Website>
    </Websites>
</UserRequest>

Successful Response

<?xml version="1.0" encoding="utf-8"?>
<UserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Follr.API.Models">
    <Message>Success</Message>
    <Status>0</Status>
    <User>
        <Email>johnnydoe@example.com</Email>
        <FirstName>John</FirstName>
        <Id>2UH2MT</Id>
        <LastName>Doe</LastName>
        <Password />
        <ProfileUrl>http://follr.me/John.Doe</ProfileUrl>
    </User>
</UserResponse>

Error Response

<?xml version="1.0" encoding="utf-8"?>
<UserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Follr.API.Models">
    <Message>Email is already in use</Message>
    <Status>101</Status>
    <User />
</UserResponse>

Refer to the status code dictionary for a complete list of possible error codes.

JSON Example

Request Url

https://partner.follrdev.com/user/update/2UH2MT

Request Payload

{
    "Address":{
        "City":"Emeryville",
        "Country":"US",
        "Line1":"101 Changed St",
        "Line2":null,
        "Line3":null,
        "PostalCode":"94608",
        "State":"CA"
    },
    "EducationHistory":[
        {
            "Degree":"Bachelor of Science",
            "Description":"Graduated with high honors.",
            "EndYear":1998,
            "FieldOfStudy":"Chemistry",
            "School":"California State University",
            "StartYear":1994
        }
    ],
    "EmploymentHistory":[
        {
            "Description":"Lead chemical engineer of the new uber drug research team",
            "Employer":"Pharma Company, Inc.",
            "EndMonth":4,
            "EndYear":2012,
            "IndustryId":18,
            "Position":"Chemical Engineer",
            "StartMonth":1,
            "StartYear":2012,
            "Url":"http:\/\/pharmaco.com"
        }
    ],
    "Links":[
        {
            "Label":null,
            "ServiceId":3,
            "Url":"http:\/\/www.linkedin.com\/in\/johnnydoe"
        }
    ],
    "Messengers":[
        {
            "MessengerId":3,
            "ScreenName":"johnnydoe"
        }
    ],
    "PhoneNumbers":[
        {
            "Label":"Fax",
            "Number":"510-555-1200",
            "PhoneNumberType":2
        }
    ],
    "Profile":{
        "Biography":"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?",
        "Introduction":"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain.",
        "Photo":null,
        "ProfessionalSummary":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
        "Title":"Senior Chemical Engineer"
    },
    "User":{
        "Email":"johnnydoe@example.com",
        "FirstName":"Johnny",
        "Id":"2UH2MT",
        "LastName":"Doe",
        "Password":null,
        "ProfileUrl":null
    },
    "Websites":[
        {
            "Label":"Yahoo",
            "Url":"http:\/\/yahoo.com"
        }
    ]
}

Successful Response

{
    "Message":"Success",
    "Status":0,
    "User":{
        "Email":"johnnydoe@example.com",
        "FirstName":"Johnny",
        "Id":"2UH2MT",
        "LastName":"Doe",
        "Password":null,
        "ProfileUrl":"http:\/\/follr.me\/John.Doe"
    }
}

Error Response

{
    "Message":"Email is already in use",
    "Status":101,
    "User":null
}

Refer to the status code dictionary for a complete list of possible error codes.