I want to create a “PerRobot”-scope credential asset via Orchestrator API inside a Modern folder by using:
- the following endpoint of UiPath.WebApi, version 13.0:
POST: odata/Assets
- the payload:
{
"Name": "string7",
"CanBeDeleted": true,
"ValueScope": "PerRobot",
"ValueType": "Credential",
"Value": "string",
"StringValue": "string",
"BoolValue": true,
"IntValue": 0,
"CredentialUsername": "",
"CredentialPassword": "",
"ExternalName": "string",
"CredentialStoreId": 1,
"KeyValueList": [],
"HasDefaultValue": true,
"Description": "string",
"RobotValues": [
{
"RobotId": 0,
"RobotName": "string",
"KeyTrail": "string",
"ValueType": "DBConnectionString",
"StringValue": "string",
"BoolValue": true,
"IntValue": 0,
"Value": "string",
"CredentialUsername": "string",
"CredentialPassword": "string",
"ExternalName": "string",
"CredentialStoreId": 1,
"KeyValueList": [],
"Id": 124
}
],
"UserValues": [],
"FoldersCount": 1,
"Id": 124
}
… but i do always get a 400 Bad Request with the following message regarding string need of a classic folder:
{
"message": "A valid classic folder id is required for this operation",
"errorCode": 1009,
"resourceIds": null
}
I’ve tried out what I’ve found on the following posts, but which both address only correct usage
for classic folder, but NOT modern folders:
My questions would be:
-
Is it possible at all to create “PerRobot” credential in modern folders via API?
-
If “yes”, what am I doing wrong or what part of the payload is incorrect?
-
Is there any detailed documentation regarding this topic? (could not find any)