Update User Token
[DEPRECATED — use PATCH /api/v2/agent-portfolios//user-tokens/ (scope names) instead] Updates the settings of an existing user token for a agent-portfolio. At least one field must be provided.
Headers
A unique request identifier.
"acfc5a98-fefd-4fb5-8774-543f74274e81"
API key for authentication.
"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"
User-specific authentication key.
"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"
Path Parameters
The unique identifier of the agent-portfolio.
The unique identifier of the user token to update.
Body
[DEPRECATED — use scopeNames instead] An updated set of permission scope identifiers for the token. Available scopes: 200 = etoro-public:real:read, 201 = etoro-public:demo:read, 202 = etoro-public:real:write, 203 = etoro-public:demo:write.
[211, 212]The set of permission scope names (preferred; replaces the deprecated scopeIds). Provide either scopeNames or scopeIds. Available scopes: etoro-public:real:read, etoro-public:demo:read, etoro-public:real:write, etoro-public:demo:write.
[
"etoro-public:trade.real:read",
"etoro-public:trade.real:write"
]An updated set of IPv4 addresses allowed to use this token.
["192.168.1.1"]An updated expiration date and time (UTC) for the token.
"2026-12-31T23:59:59Z"
Response
User token updated successfully