transform

POSTALL,EAM/changeUserOrderInAccount

IN THIS PAGE

Arguments

userIdsCharacter

A CR-LF delimited list of UserIds in the order in which they should be assigned to the TransForm account.

Returns

resultJSON Object

Returns an object with these properties:

errorboolean

true if there was an error

errorTextstring
resultobject

Description

Change the order in which users are assigned to a TransForm account. The account is the account associated with the API key.

The order in which users are assigned to a TransForm account is relevant if your TransForm account is licensed for fewer users than are members of the account. For example, if a TransForm account has 10 members, but the TransForm account only has a license for 5 users, the first 5 users assigned to the account will be able to log-in to the TransForm account.

CURL

CURL --insecure -H "apikey:Your_api_key" -H "content-type: application/json" -H "accept: application/json" -d "{"""userIds""":value_of_userids}" "https://transform.alphasoftware.com/transformAPIVersion1.a5svc/changeUserOrderInAccount"

Node

var request = require('request')
var path = 'https://transform.alphasoftware.com/transformAPIVersion1.a5svc/changeUserOrderInAccount';
var data = {"userIds": "value_of_userids"};
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%
{
    "userIds": "value_of_userids"
}

%txt%

dim url as c = "/changeUserOrderInAccount"
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