UpdatePanelVariables

Description

Update Panel variables by userId

Signature
int UpdatePanelVariables(string key, string panelProjectId, int userId, string[] fieldNames, string[] fieldValues)

Parameters

Name Data Type Description

key

string required

The authentication key

panelProjectId

string required

The project id of the panel

userId

int required

The ID of the panelist

fieldNames

string[ ] required

The field names to update

fieldValues

string[ ] required

The values to update (corresponding to the field names)

Response

Data Type Description

int

The result code for the update:

Code

Description

0

Update successful.

-1

Error on the client end, for example not being able to connect to the panel database etc.

-2

The unique constraint is violated, i.e. another panelist already exists with the provided value(s) you are trying to set for (one of) the unique field(s) (email + any user provided unique fields).

-3

Other database errors when updating the panelist.

-4

The panelist does not exist.

-5

The password failed on one or more of the password complexity rules, according to the Panel settings for password complexity.

Example

var communityPanelSoapClient = new CommunityPanelSoapClient();

var resultCode = communityPanelSoapClient.UpdatePanelVariables(
    key,
    "p123456789",
    "99",
    new []{"email", "gender"},
    new []{"bruce.wayne@example.test", "1"}
);