Create Trading Permission

### Create a trading permission ***Note***: The [/user/createEvaluationAccounts](/api/rest-api-endpoints/users/create-evaluation-accounts) endpoint replaces [/user/openDemoAccount](/api/rest-api-endpoints/users/open-demo-account) and [/user/createTradingPermission](/api/rest-api-endpoints/users/create-trading-permission). Intended for use by B2B Partners. Create a new Trading Permission for account with ID `accountId` using that user's ID, `userId`.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
accountIdlongRequired
userIdlongRequired

Response

TradingPermissionResponse
errorTextstring or null<=8192 characters

Non-empty if the request failed

tradingPermissionobject or null