Loading...

Description

Deletes a user from the account.


Request URL

DELETE   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 delete. 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 = "XXXXXX";

var context = new T70Context();

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

var item = userRepo.Get(userName);

userRepo.Delete(item);

}

}

 

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