2018-08-19 22:23:40 +00:00
|
|
|
import { WRITE_TIMEOUT, patch } from '../_utils/ajax'
|
|
|
|
import { auth, basename } from './utils'
|
|
|
|
|
|
|
|
export async function updateCredentials (instanceName, accessToken, accountData) {
|
|
|
|
let url = `${basename(instanceName)}/api/v1/accounts/update_credentials`
|
2018-08-30 04:42:57 +00:00
|
|
|
return patch(url, accountData, auth(accessToken), { timeout: WRITE_TIMEOUT })
|
2018-08-19 22:23:40 +00:00
|
|
|
}
|