Loading...

Description

Changes a user's password to the newly supplied password.


Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/user/{userName}/password

Request Properties

Parameter Description Mandatory
accountId The account the user falls under. Yes
userName The user's login name. Yes
UserName User name. Yes
NewPassword The new login password for the user. Yes
ConfirmPassword Confirmation password. Must match NewPassword. Yes

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const string userName = "XXXX";

var context = new T70Context();

var userPasswordRepo = context.Repository<UserPassword>(new { AccountId = accountId, UserName =userName });

var item = new UserPassword()
{

UserName = userName,

NewPassword = "",

ConfirmPassword = ""

};

userPasswordRepo.Update(item);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet