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
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
chevron-right
400

API policy is invalid (check for duplicate endpoints)

application/problem+json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
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
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
chevron-right
400

API policy is invalid

application/problem+json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · int32 · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
Other propertiesanyOptional
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

Last updated

Was this helpful?