import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const field = await client.credentials.packages.credentials.fields.delete('email', {
packageName: 'packageName',
credentialName: 'credentialName',
});
console.log(field.data);{
"success": true,
"message": "<string>",
"data": {
"userId": "<string>",
"packageName": "<string>",
"secretPath": "<string>",
"credentialName": "<string>",
"fields": [
{
"fieldType": "email",
"value": "<string>"
}
]
}
}import Mobilerun from '@mobilerun/sdk';
const client = new Mobilerun({
apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted
});
const field = await client.credentials.packages.credentials.fields.delete('email', {
packageName: 'packageName',
credentialName: 'credentialName',
});
console.log(field.data);{
"success": true,
"message": "<string>",
"data": {
"userId": "<string>",
"packageName": "<string>",
"secretPath": "<string>",
"credentialName": "<string>",
"fields": [
{
"fieldType": "email",
"value": "<string>"
}
]
}
}Bearer token via Authorization header
email, username, password, api_token, phone_number, two_factor_secret, backup_codes Field deleted successfully
true, false Show child attributes
Was this page helpful?