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.create('credentialName', {
packageName: 'packageName',
fieldType: 'email',
value: 'x',
});
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.create('credentialName', {
packageName: 'packageName',
fieldType: 'email',
value: 'x',
});
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
Field added
true, false Show child attributes
Was this page helpful?