REST API - How to on-board accounts with custom file categories

REST API - How to on-board accounts with custom file categories

85
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 15:56 PM


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"
            }
        ]
    }
}



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000zmiCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail