AssignInterviewerToProjects

Description

Assign an interviewer to multiple projects.

An exception is thrown if the user id does not exist.
Signature
string[] AssignInterviewerToProjects(string key, string userId, string[] projectIds)

Parameters

Name Data Type Description

key

string required

The authentication key

userId

string required

The interviewer user id to assign.

projectIds

string[ ] required

The project ids that the interviewer will be assigned to.

Response

Data Type Description

string[ ]

The project ids that do not exist. A successful assignment will return an empty array.

Example

// Create instance of the webservice
var capi = new CapiSoapClient();

//***************************************************
//
// AssignInterviewerToProjects
//
//***************************************************

// Assign interviewer to surveys
string[] projectIdsThatDoesNotExist = capi.AssignInterviewerToProjects(key, "john", new string[] { "p123456789", "p987654321" });
if (projectIdsThatDoesNotExist.Length == 0)
{
	// Assigment was successful
}