...
Parameter | Description | Type | Required | Default/Values | |
---|---|---|---|---|---|
requestType | API request type that adds a policy to a global organization. | string | Yes | ||
globalOrgToken | API key which is a unique identifier of the global organization. | string | Yes | ||
userKey | The ID of the user’s profile, which uniquely identifies the user in WhiteSource. | string | Yes | ||
policy | Policy data object containing: | string | Yes | ||
name | Name of the policy you want to add. | string | Yes | ||
owner | Identification of the user that created the policy. | integer | Yes | Valid values: user ID, name, or email. | |
filter | The policy filter defines how to match libraries (for example: By License). Comprises the following:
For a description of all the available match types and their values, please refer to Matching a Policy to a Library. | string | Yes | For the LICENSE match type, if the inclusive value is set to true, the policy will perform the action when ALL the licenses in the library are matched. Boolean data type values are true or false. | |
action | Type of operation that defines what to do when a library matches the policy’s filter. | string | Yes | Valid values are:
|
...