import Refresh Tokens With Id

POST {{baseUrl}}/api/user/refresh-token/import

Bulk imports refresh tokens. This request performs minimal validation and runs batch inserts of refresh tokens with the expectation that each token represents a user that already exists and is registered for the corresponding FusionAuth Application. This is done to increases the insert performance. Therefore, if you encounter an error due to a database key violation, the response will likely offer a generic explanation. If you encounter an error, you may optionally enable additional validation to receive a JSON response body with specific validation errors. This will slow the request down but will allow you to identify the cause of the failure. See the validateDbConstraints request parameter.

Request Body

{"refreshTokens"=>[{"applicationId"=>"<uuid>", "id"=>"<uuid>", "insertInstant"=>"<long>", "metaData"=>{"device"=>{"description"=>"<string>", "lastAccessedAddress"=>"<string>", "lastAccessedInstant"=>"<long>", "name"=>"<string>", "type"=>"<string>"}}, "startInstant"=>"<long>", "tenantId"=>"<uuid>", "token"=>"<string>", "userId"=>"<uuid>"}, {"applicationId"=>"<uuid>", "id"=>"<uuid>", "insertInstant"=>"<long>", "metaData"=>{"device"=>{"description"=>"<string>", "lastAccessedAddress"=>"<string>", "lastAccessedInstant"=>"<long>", "name"=>"<string>", "type"=>"<string>"}}, "startInstant"=>"<long>", "tenantId"=>"<uuid>", "token"=>"<string>", "userId"=>"<uuid>"}], "validateDbConstraints"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

&quot;&quot;