ApiPolicies

List API policies

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Query parameters
FilterstringOptional

Filter is matched against name, description and endpoints associated with the policy.

Responses
200

OK

application/json
get
/api/v1/api-policies
200

OK

Create an API policy

post
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Body
namestringRequired

The name of the policy

descriptionstring | nullableOptional

The description of the policy

tagsstring[] | nullableOptional

The tags of the policy

allowPublicAccessbooleanOptional

Determines if public access is allowed

apiKeyNamestringOptional

The name of the API key

apiKeyLocationstring · enumOptionalPossible values:
Responses
post
/api/v1/api-policies

No content

Get a single API policy

get
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API policy identifier

Responses
200

OK

application/json
get
/api/v1/api-policies/{id}

Update an API policy

put
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API policy identifier

Body
namestringRequired

The name of the policy

descriptionstring | nullableOptional

The description of the policy

tagsstring[] | nullableOptional

The tags of the policy

allowPublicAccessbooleanOptional

Determines if public access is allowed

apiKeyNamestringOptional

The name of the API key

apiKeyLocationstring · enumOptionalPossible values:
Responses
put
/api/v1/api-policies/{id}

No content

Delete an API policy

delete
Authorizations
AuthorizationstringRequired

Enter your bearer token in the format Bearer <token>

Path parameters
idinteger · int64Required

API policy identifier

Responses
delete
/api/v1/api-policies/{id}

No content

Was this helpful?