POST Api/Applicant/{applicantId}/SetPassword

Sets an applicants password to a new value, but only if the provided current password matches.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
applicantId

The ID of the applicant.

integer

Required

Body Parameters

Contains the old, the new password and the URL of the portal (required for selection of correct password policies).

ApplicantSetPasswordParameter
NameDescriptionTypeAdditional information
OldPassword

string

None.

NewPassword

string

None.

Url

URI

None.

Request Formats

application/json, text/json, application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A list of errors (if any), either password policy errors or if the current password does not match.

ApplicantSetPasswordResponse
NameDescriptionTypeAdditional information
Errors

Collection of Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Errors": [
    0,
    0
  ]
}

application/xml, text/xml

Sample:
<ApplicantSetPasswordResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses">
  <Errors>
    <ApplicantSetPasswordResponse.Error>PasswordPolicySymbols</ApplicantSetPasswordResponse.Error>
    <ApplicantSetPasswordResponse.Error>PasswordPolicySymbols</ApplicantSetPasswordResponse.Error>
  </Errors>
</ApplicantSetPasswordResponse>