> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://partner.ninjatrader.com/eval/api/rest-api-endpoints/users/change-user-status/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://partner.ninjatrader.com/_mcp/server. # Change User Status POST https://live.tradovateapi.com/v1/user/changeuserstatus Content-Type: application/json ### Downgrade a user from professional to non-professional.**Available to:** The organization's master account owner**Environments:** Live**[Rate Limit](/eval/overview/core-concepts/rate-limits):** No endpoint-specific limitChange a user's classification from professional to non-professional. This is the downgrade step when a Live subaccount is offboarded back to Demo. Only the master account owner can change the professional classification, and only in this direction. Setting a user back to professional isn't permitted through this endpoint; it happens when the user's trading permission is approved.To downgrade, send the user's `userId`, their current `status`, and `professional` set to `false`. Send the status the user already has rather than a fixed value: the endpoint writes `status` on every call it accepts, and also when it rejects an attempt to set a user back to professional, so a hardcoded value silently changes it.The endpoint changes the classification only; it doesn't expire the user's market-data subscriptions. A professional user holds professional market-data subscriptions that no longer apply once they're non-professional, so expire those separately by calling [`expireMarketDataSubscription`](/eval/api/rest-api-endpoints/users/expire-market-data-subscription).You can't downgrade a user who has an active Live subaccount.A rejected change returns `HTTP 200` with `errorText` set, not an error status. Check `errorText` to confirm the classification change succeeded.For the full offboarding workflow, including the market-data and entitlement handoff, see [Changing Users Between Demo and Live](/eval/overview/prop-firm-management/changing-users-from-demo-to-live).**Common Failure Scenarios**- The caller isn't the master account owner. Only the master account owner can change the professional classification. - The request tries to set the user back to professional. Upgrades aren't permitted through this endpoint. - The user has an active Live subaccount. Downgrade the user once the Live subaccount is no longer active.**Error Messages**A failed request returns one of these messages:| Message | Response | Trigger | | ---------------------------------------------------------------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------- | | `"Cannot change professional status: only the master account owner may change this flag"` | 200 (in `errorText`) | The caller is an organization administrator but not the master account owner. | | `"Cannot change professional status: setting a trader to professional is not permitted through this flow"` | 200 (in `errorText`) | The request tries to change the user from non-professional to professional. | | `"Cannot change professional status: trader has an active live subaccount"` | 200 (in `errorText`) | The user has an active Live subaccount. |**Related Resources**- To expire the user's professional market-data subscriptions after the downgrade, see [`expireMarketDataSubscription`](/eval/api/rest-api-endpoints/users/expire-market-data-subscription). - For the full Demo-to-Live and Live-to-Demo workflow, see [Changing Users Between Demo and Live](/eval/overview/prop-firm-management/changing-users-from-demo-to-live). Reference: https://partner.ninjatrader.com/eval/api/rest-api-endpoints/users/change-user-status ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Body (application/json) This endpoint expects a ChangeUserStatus. - `userId` (long, required) - `status` (enum, required) — Active, Closed, Initiated, TemporaryLocked, UnconfirmedEmail - Allowed values: `Active`, `Closed`, `Initiated`, `TemporaryLocked`, `UnconfirmedEmail` - `professional` (boolean, required) ## Response ### 200 UserStatusMessage - `errorText` (string, optional) — Non-empty if the request failed - `status` (enum, optional) — Active, Closed, Initiated, TemporaryLocked, UnconfirmedEmail - Allowed values: `Active`, `Closed`, `Initiated`, `TemporaryLocked`, `UnconfirmedEmail` ## Examples **Request** ```json { "userId": 1, "status": "Active", "professional": true } ``` **Response** ```json { "errorText": "string", "status": "Active" } ``` **SDK Code** ```python import requests url = "https://live.tradovateapi.com/v1/user/changeuserstatus" payload = { "userId": 1, "status": "Active", "professional": True } headers = { "Authorization": "Bearer ", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.json()) ``` ```javascript const url = 'https://live.tradovateapi.com/v1/user/changeuserstatus'; const options = { method: 'POST', headers: {Authorization: 'Bearer ', 'Content-Type': 'application/json'}, body: '{"userId":1,"status":"Active","professional":true}' }; try { const response = await fetch(url, options); const data = await response.json(); console.log(data); } catch (error) { console.error(error); } ``` ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://live.tradovateapi.com/v1/user/changeuserstatus" payload := strings.NewReader("{\n \"userId\": 1,\n \"status\": \"Active\",\n \"professional\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } ``` ```ruby require 'uri' require 'net/http' url = URI("https://live.tradovateapi.com/v1/user/changeuserstatus") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Post.new(url) request["Authorization"] = 'Bearer ' request["Content-Type"] = 'application/json' request.body = "{\n \"userId\": 1,\n \"status\": \"Active\",\n \"professional\": true\n}" response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.post("https://live.tradovateapi.com/v1/user/changeuserstatus") .header("Authorization", "Bearer ") .header("Content-Type", "application/json") .body("{\n \"userId\": 1,\n \"status\": \"Active\",\n \"professional\": true\n}") .asString(); ``` ```php request('POST', 'https://live.tradovateapi.com/v1/user/changeuserstatus', [ 'body' => '{ "userId": 1, "status": "Active", "professional": true }', 'headers' => [ 'Authorization' => 'Bearer ', 'Content-Type' => 'application/json', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://live.tradovateapi.com/v1/user/changeuserstatus"); var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer "); request.AddHeader("Content-Type", "application/json"); request.AddParameter("application/json", "{\n \"userId\": 1,\n \"status\": \"Active\",\n \"professional\": true\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = [ "Authorization": "Bearer ", "Content-Type": "application/json" ] let parameters = [ "userId": 1, "status": "Active", "professional": true ] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://live.tradovateapi.com/v1/user/changeuserstatus")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error as Any) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume() ```