REST API - How to on-board accounts with custom file categories
Objective
When on-boarding accounts with REST API, you will sometimes be required to add accounts that have custom file categories or non-standard properties associated with them. This article describes how to format a request with a custom file category so that it is visible on the account within the Vault.
Environment
10.1;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10
Procedure
To specify a custom file category in your request body, you will want to specify the property and value in the "Properties" dictionary like so:
1.) Using the Modern API (v10):
{
"name": "<name>",
"address": "<address>",
"userName": "<userName>",
"platformId": "<platformId>",
"safeName": "<safeName>",
"secretType": "<key>",
"platformAccountProperties": {
"LogonDomain": "LogonDomain",
"Example Custom File Category": "<value>"
}
}
2.) Using the Classic API:
{
"account": {
"safe": "<safe>",
"platformID": "<platform>",
"username": "<username>",
"address": "<address>",
"properties": [{
"Key": "LogonDomain",
"Value": "<value>"
},
{
"Key": "Example Custom File Category",
"Value": "value"
}
]
}
}