transform

POSTALL,EAM/removeUserFromTransFormAccount/{accountToRemoveFrom}

IN THIS PAGE

Arguments

userIdToRemoveCharacter

UserId to remove from TransForm account

accountToRemoveFromCharacter

Only super users can specify an accountId. Otherwise TransForm account associated with API key is used.

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
resultobject
rowsDeleteFromAccountMembershipTable
rowsDeleteFromRolesTable

Description

Remove users from a TransForm account. The account is the account associated with the API key.

CURL

CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""userIdToRemove""":value_of_useridToRemove}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/removeUserFromTransFormAccount/value_of_accountToRemoveFrom"

Node

var request = require('request')
var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/removeUserFromTransFormAccount/value_of_accountToRemoveFrom';
var data = {"userIdToRemove": "value_of_useridToRemove"};
var dataJSON = JSON.stringify(data)
request.post(
	{
		headers: {apikey: "Your_api_key"},   
		url: path, 
		form: dataJSON}, 
		function(err,httpResponse,body){
			if(err) console.log(err)
			console.log(body)
	}
)

Xbasic

dim apikey as c = "Your_api_key"
dim postdata as c
postdata = <<%txt%
{
    "userIdToRemove": "value_of_useridToRemove"
}

%txt%

dim url as c = "/removeUserFromTransFormAccount/value_of_accountToRemoveFrom"
dim pr as p
pr = a5dialogHelper_transformAPIQuery(url,postdata,apikey)
if pr.error = .f. then
	dim result as c 
	result = pr.result
else
	dim errorText as c 
	errorText = pr.errorText
end if