Employees
Update User Role in Org
Updates a seat in your organization. Only the fields sent are changed. The body is not schema-validated. The returned row is read before a salary change is applied, so baseSalary and baseSalaryCurrency in it can be stale.
This is the v1 (legacy) API. The current API is in the API reference.
curl --request PUT \
--url 'https://app.toku.com/api/tokuApi/v1/updateUserRoleInOrg' \
--header 'Authorization: Bearer <token>' \
--header 'x-role-type: CLIENT_ORG_ADMIN' \
--header 'Content-Type: application/json' \
--data '{
"roleInOrgID": "660e8400-e29b-41d4-a716-446655440001",
"externalEmployeeID": "string",
"isExternalEmployee": true,
"country": "string",
"employmentType": "CONTRACTOR",
"employeeSyncedSource": "CSV_UPLOAD",
"taxMethod": "NO_TAX",
"withholdingPercentage": "string",
"baseSalary": 0,
"baseSalaryCurrency": "string"
}'{
"data": {
"invoiceApproverRoutingUpdatedAt": "2026-01-01T00:00:00Z",
"legacyMigratedAt": "2026-01-01T00:00:00Z",
"legacyModelID": 0,
"roleInOrgID": "660e8400-e29b-41d4-a716-446655440001",
"personID": "bb0e8400-e29b-41d4-a716-446655440006",
"orgID": "aa0e8400-e29b-41d4-a716-446655440005",
"invitedByInvestorID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"invitedByRecipientID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"roleInOrgExternalID": 12345,
"externalEmployeeID": "EMP-001",
"positionID": "string",
"jobTitle": "string",
"country": "US",
"countryCode": "USA",
"preferredInvoiceCurrency": "string",
"status": "string",
"lifecycleStatus": "INVITED",
"workEmail": "string",
"department": "string",
"legalEntity": "string",
"payrollEntity": "string",
"contractEntityID": "string",
"onboarded": true,
"isTerminated": true,
"privilegedAdmin": true,
"isPrimaryAdmin": true,
"isOrgMarketMaker": true,
"role": "USER",
"employmentType": "EMPLOYEE",
"revokedAt": null,
"createdAt": "2025-12-15T10:30:00.000Z",
"updatedAt": "2026-01-01T00:00:00Z",
"payrollEmployeeID": "PAY-12345",
"hasWelcomeEmailSent": true,
"subEmploymentType": "string",
"remarks": "string",
"isITAdmin": true,
"isExternalEmployee": true,
"employeeSyncedSource": "CSV_UPLOAD",
"investorFullName": "string",
"baseSalary": "120000",
"baseSalaryCurrency": "USD",
"baseSalaryPaymentType": "FIAT",
"baseSalaryTokenTypeID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"baseSalaryTokenSymbol": "string",
"baseSalaryTokenNetwork": "string",
"baseSalaryPeriod": "HOURLY",
"stablecoinPayPercentage": 0,
"maxStablecoinPercentage": 0,
"taxMethod": "NO_TAX",
"withholdingPercentage": "22",
"lastLogin": "2026-01-01T00:00:00Z",
"lastTestTxReminderBy": "string",
"lastTestTxReminderAt": "2026-01-01T00:00:00Z",
"payrollFileNumber": "string",
"externalPayrollId": "string",
"lastOnboardingReminderBy": "string",
"lastOnboardingReminderAt": "2026-01-01T00:00:00Z",
"address": "string",
"payrollGroup": "string",
"lastInactiveWalletReminderBy": "string",
"lastInactiveWalletReminderAt": "2026-01-01T00:00:00Z",
"recipientType": "PERSON",
"receiveNotificationEmails": true,
"receiveInAppNotifications": true,
"notificationEmailFrequency": "OFF",
"receiveSlackNotifications": true,
"selfServeContractorOnboardingStatus": "NOT_STARTED",
"selfServeContractorOnboardingCompletedAt": "2026-01-01T00:00:00Z",
"selfServeWelcomeEmailSentAt": "2026-01-01T00:00:00Z",
"numberOfPayPeriodsPerYear": 0,
"managerRoleInOrgID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"managerPath": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
},
"error": null
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your API token.
Headers
x-role-typestringrequiredSeat role the token acts as. The token's creator must hold this role in the token's org; TOKU_ADMIN and unknown values are refused with 401. This operation accepts CLIENT_ORG_ADMIN only; other roles get 403.
Available options: CLIENT_ORG_ADMIN
Body
application/json
roleInOrgIDstring<uuid>requiredexternalEmployeeIDstringisExternalEmployeebooleancountrystringemploymentTypestringTGA employment type. Omit to keep the current one.
Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER
employeeSyncedSourcestringAvailable options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER
taxMethodstring | nullAvailable options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD
withholdingPercentagestring | numberNumber or decimal string. 0 or empty is ignored (send "0" to set zero).
baseSalarynumber0 is ignored.
baseSalaryCurrencystringCurrency code (TaxCurrencyCode), e.g. USD.
Response
200Role updated
dataobjectrequiredA seat (role) of a person in an organization: the full stored row.
Show child attributes
invoiceApproverRoutingUpdatedAtstring<date-time> | nulllegacyMigratedAtstring<date-time> | nulllegacyModelIDinteger | nullroleInOrgIDstring<uuid>personIDstring<uuid>orgIDstring<uuid>invitedByInvestorIDstring<uuid> | nullinvitedByRecipientIDstring<uuid> | nullroleInOrgExternalIDintegerexternalEmployeeIDstring | nullpositionIDstring | nulljobTitlestring | nullcountrystring | nullcountryCodestring | nullISO 3166-1 alpha-3 country code.
preferredInvoiceCurrencystring | nullstatusstring | nulllifecycleStatusstring | nullAvailable options: INVITED, ONBOARDING, ACTIVE, OFFBOARDING, TERMINATED, ARCHIVED
workEmailstring | nulldepartmentstring | nulllegalEntitystring | nullpayrollEntitystring | nullcontractEntityIDstring | nullonboardedbooleanisTerminatedbooleanprivilegedAdminbooleanisPrimaryAdminbooleanisOrgMarketMakerbooleanrolestringSeat role.
Available options: TOKU_ADMIN, CLIENT_ORG_ADMIN, CLIENT_ORG_APPROVER, FINANCE_ADMIN, USER, INVESTOR, SUB_INVESTOR, SUB_RECIPIENT
employmentTypestring | nullTGA employment type.
Available options: CONTRACTOR, EMPLOYEE, EX_EMPLOYEE, ADVISOR, SERVICE_PROVIDER, OTHER
revokedAtstring<date-time> | nullcreatedAtstring<date-time>updatedAtstring<date-time>payrollEmployeeIDstring | nullhasWelcomeEmailSentbooleansubEmploymentTypestring | nullremarksstring | nullisITAdminbooleanisExternalEmployeebooleanemployeeSyncedSourcestring | nullAvailable options: CSV_UPLOAD, WORKDAY, ADP, UKG, TOKUEOR, TRINET, GUSTO, DEEL, BAMBOOHR, IMPORTED, OTHER
investorFullNamestring | nullbaseSalarystring | nullDecimal, serialized as a string.
baseSalaryCurrencystring | nullCurrency code (TaxCurrencyCode), e.g. USD.
baseSalaryPaymentTypestringAvailable options: FIAT, TOKEN
baseSalaryTokenTypeIDstring<uuid> | nullbaseSalaryTokenSymbolstring | nullbaseSalaryTokenNetworkstring | nullbaseSalaryPeriodstring | nullAvailable options: HOURLY, MONTHLY, YEARLY
stablecoinPayPercentagenumber | nullmaxStablecoinPercentagenumber | nulltaxMethodstring | nullAvailable options: NO_TAX, MANUAL_TAX, TAX_ENGINE, BULK_UPLOAD
withholdingPercentagestring | nullDecimal 0-100, serialized as a string.
lastLoginstring<date-time> | nulllastTestTxReminderBystring | nulllastTestTxReminderAtstring<date-time> | nullpayrollFileNumberstring | nullexternalPayrollIdstring | nulllastOnboardingReminderBystring | nulllastOnboardingReminderAtstring<date-time> | nulladdressstring | nullpayrollGroupstring | nulllastInactiveWalletReminderBystring | nulllastInactiveWalletReminderAtstring<date-time> | nullrecipientTypestring | nullAvailable options: PERSON, ENTITY
receiveNotificationEmailsbooleanreceiveInAppNotificationsbooleannotificationEmailFrequencystringAvailable options: OFF, IMMEDIATE, DAILY
receiveSlackNotificationsbooleanselfServeContractorOnboardingStatusstringAvailable options: NOT_STARTED, IN_PROGRESS, COMPLETED
selfServeContractorOnboardingCompletedAtstring<date-time> | nullselfServeWelcomeEmailSentAtstring<date-time> | nullnumberOfPayPeriodsPerYearintegermanagerRoleInOrgIDstring<uuid> | nullmanagerPathstring<uuid>[]errorobject | nullrequiredAlways null on success
401The token is missing, invalid or expired
errorstringrequiredWhat went wrong
403The token's seat doesn't have the permission this operation needs
errorobjectrequiredShow child attributes
messagestringrequired429Too many requests from this address or token. Wait for the number of seconds in the Retry-After header, then retry.
errorstringrequiredWhat went wrong
500The operation failed. This includes input that doesn't match what the operation accepts; error.message says what was wrong.
errorobjectrequiredShow child attributes
messagestringrequired