Create Policy

Create Policy

Create a new policy.

Request
URI
POST
https://{api_host}/suite-api/api/policies
COPY
Request Body

The Policy object which can be used to create the policy

policy of type(s) application/json
Required

Show optional properties

{
    "name": "string"
}
"{\n  \"name\" : \"XYZ Production Policy\",\n  \"description\" : \"=Production Policy Description\",\n  \"parentPolicy\" : \"26f2c01e-b7ea-4586-97c2-b9f677ce38af\"\n}"
string
name
Required

Name of the Policy

string
description
Optional

Name of the Policy

string As uuid As uuid
parentPolicy
Optional

Parent Policy id

string As uuid As uuid
id
Optional

Identifier of the Policy

Authentication
This operation uses the following authentication methods.
Responses
201

Created Policy.

Returns policy of type(s) application/json
"No Custom Example is Available"
string
name
Required

Name of the Policy

string
description
Optional

Name of the Policy

string As uuid As uuid
parentPolicy
Optional

Parent Policy id

string As uuid As uuid
id
Optional

Identifier of the Policy


400

An invalid request body was specified

Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/suite-api/api/policies