Loading...

Description

Updates a user with the supplied details.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID that the user belongs to. Yes
username The ID of the user to update. Yes
Email Email address of the user. Yes
FirstName The user's first or given name. No
LastName The user's last or family name. No
PhoneNumber The user's mobile phone number. No
IsChatUser Chat agent has access to Call Center only. No
Comment Gets or sets application-specific information for the membership user. No
IsApproved Gets or sets whether the membership user can be authenticated. No

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 = "XXXXX";

var context = new T70Context();

var userRepo = context.Repository<User>(new { AccountId = accountId });

var item = userRepo.Get(userName);

item.LastName = "XXXXX";

userRepo.Update(item);

}

}

 

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