Files
authentik/website/docs/developer-docs/api/reference/policies-all-test-create.api.mdx
2024-09-13 12:17:54 -05:00

486 lines
18 KiB
Plaintext

---
id: policies-all-test-create
title: "policies_all_test_create"
description: "Test policy"
sidebar_label: "policies_all_test_create"
hide_title: true
hide_table_of_contents: true
api: eJytVkuP2zYQ/isETw3gWNtNDoVP3aZGYWDTLPZxCgyDksYSsxSpkpR3DUH/vTOkZMu2skiAXGyKHM7jm29m2HJTgxVeGr3K+YLXRslMgtsIpTYenN9kFoQHPuM5uMzKmkRR8BHPWJDe41ktrKjAg3V88bXlkiRq4Us80ngwKN5vmkbmuOmyEirBFy33+5qOnbdSF3iyNbYSHneCZHdu9oY9Pa3+ZlGcyRy0l9s9rX0pHbsLVuaox8J/jbSAMXnbQLeecS8K8u4QIl9HKQzkL5PvyZnMaI8aaSnqGsUCMMk3R7bbS69N+g0y/xY2DF4ha2ifYWRMsMaBZS/SlywYe6XbtaUkePIJdZPEyIZEqQJ3EIrhxoQDIs8lWRHqbqys67oxFF+jcgJDekUKImDk8H2Egp9dCehhwjAKK/0+pFc0viTgn/Fr3QUYXW20i/5fX139QixRdaM8M1vEroeUaHmBWi2cIwYdFabGKBCagKvAOVFEwf5UWCuIudJD5S6JGDAQ+Ret9gcMlCk2P6HpOwE9oHoFDJWxXlmkAxbcQAk6LCCfXwTpJV7xoqrfrJwc6/U9ifLeaQU7UHQFdFMRC9AdjwlReAteM4iu4dpaY/H/RVjd/0XVUm9NCCRt6FMb78AHGp35MNDq1hS3ZHRJBqMXxQmrjzCjmPaTJ8LjMm08TKL6o4wfaRmMjVE5+DYbobs+iWQZLl0y4szQCT1GnJsduPmduiOCx7I7ZQqZ/BiL6fRgpXdCyZyNum4Q/fAL6+4f0GBlxm7uVmzZ8+KUjDl4IdVk5jKTw8TBGWC9ghEqvdFobxKRUMy+NHFWxT5Ac2bBk6GvJ1hJSTuaN11CHSOhsQN2N8yoxiq6JWqZ7D4knNrY0OQeCKMY5KjVHcIpva+HGRYaDQhLDRp9I5TvjzNl+YpsUnDs6lfjJk4XQmWFyo4IHO3NOLka476+uv44/2P++0WWPotnmn3DrZhr5iRZpfZBxkQWyIBZp2zxEpQyfxbmYGkuTShRmQG2cBLtR/bn1SOqiDhRzG6RJAW2qiadZ6ZKRiqS4ypVJk3QlE5uV5+W/z4sAy6UqkrokfIhW6HvUX7Y9ENjROizN0efDQIzqRVapCiCt23PidGsx36hqNgXp++QfpQQB0tiE15p21Q4eLKq62gbc2lp6uFyJ6wUKaUJ6ZNLR2vk4VYoB294/dt9z/l37IdfL5OxDfNGU/TYARr6wuUz7M8eWN0axUvsVsQ5dDZKfIouvX8kPUcNF12imw03bjIaDm/KrkcFefflgRiT9q+pKnQBbsULvcfwN3hrAkShuMJey5XQRYOtEs+jTmIMMWo8zGONzYYFRTWJB6YvSDyaZ9CYwgEeT98ETNf9Dywbyzo=
sidebar_class_name: "post api-method"
info_path: docs/developer-docs/api/reference/authentik
custom_edit_url: null
hide_send_button: true
---
import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import Heading from "@theme/Heading";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
<Heading
as={"h1"}
className={"openapi__heading"}
children={"policies_all_test_create"}
>
</Heading>
<MethodEndpoint
method={"post"}
path={"/policies/all/{policy_uuid}/test/"}
>
</MethodEndpoint>
Test policy
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
>
</Heading>
<details
style={{"marginBottom":"1rem"}}
className={"openapi-markdown__details"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
>
<h3
className={"openapi-markdown__details-summary-header-params"}
>
Path Parameters
</h3>
</summary><div>
<ul>
<ParamsItem
className={"paramsItem"}
param={{"in":"path","name":"policy_uuid","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Policy.","required":true}}
>
</ParamsItem>
</ul>
</div>
</details><MimeTabs
className={"openapi-tabs__mime"}
>
<TabItem
label={"application/json"}
value={"application/json-schema"}
>
<details
style={{}}
className={"openapi-markdown__details mime"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-mime"}
>
<h3
className={"openapi-markdown__details-summary-header-body"}
>
Body
</h3><strong
className={"openapi-schema__required"}
>
required
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"user"}
required={true}
schemaName={"integer"}
qualifierMessage={undefined}
schema={{"type":"integer"}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
context
</strong><span
className={"openapi-schema__name"}
>
object
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<SchemaItem
name={"property name*"}
required={false}
schemaName={"any"}
qualifierMessage={undefined}
schema={{"type":"object","additionalProperties":{}}}
collapsible={false}
discriminator={false}
>
</SchemaItem>
</div>
</details>
</SchemaItem>
</ul>
</details>
</TabItem>
</MimeTabs><div>
<div>
<ApiTabs
label={undefined}
id={undefined}
>
<TabItem
label={"200"}
value={"200"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"passing"}
required={true}
schemaName={"boolean"}
qualifierMessage={undefined}
schema={{"type":"boolean"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"messages"}
required={true}
schemaName={"string[]"}
qualifierMessage={undefined}
schema={{"type":"array","items":{"type":"string"},"readOnly":true}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
log_messages
</strong><span
className={"openapi-schema__name"}
>
object[]
</span><span
className={"openapi-schema__divider"}
>
</span><span
className={"openapi-schema__required"}
>
required
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}
>
Array [
</div>
</li><SchemaItem
collapsible={false}
name={"timestamp"}
required={true}
schemaName={"date-time"}
qualifierMessage={undefined}
schema={{"type":"string","format":"date-time"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"log_level"}
required={true}
schemaName={"LogLevelEnum (string)"}
qualifierMessage={"**Possible values:** [`critical`, `exception`, `error`, `warn`, `warning`, `info`, `debug`, `notset`]"}
schema={{"enum":["critical","exception","error","warn","warning","info","debug","notset"],"type":"string","title":"LogLevelEnum"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"logger"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"event"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={true}
className={"schemaItem"}
>
<details
style={{}}
className={"openapi-markdown__details"}
>
<summary
style={{}}
>
<span
className={"openapi-schema__container"}
>
<strong
className={"openapi-schema__property"}
>
attributes
</strong><span
className={"openapi-schema__name"}
>
object
</span><span
className={"openapi-schema__divider"}
>
</span><span
className={"openapi-schema__required"}
>
required
</span>
</span>
</summary><div
style={{"marginLeft":"1rem"}}
>
<SchemaItem
name={"property name*"}
required={false}
schemaName={"any"}
qualifierMessage={undefined}
schema={{"type":"object","additionalProperties":{}}}
collapsible={false}
discriminator={false}
>
</SchemaItem>
</div>
</details>
</SchemaItem><li>
<div
style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}
>
]
</div>
</li>
</div>
</details>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"passing\": true,\n \"messages\": [\n \"string\"\n ],\n \"log_messages\": [\n {\n \"timestamp\": \"2024-09-13T14:05:42.275Z\",\n \"log_level\": \"critical\",\n \"logger\": \"string\",\n \"event\": \"string\",\n \"attributes\": {}\n }\n ]\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem><TabItem
label={"400"}
value={"400"}
>
<div>
Invalid parameters
</div><div>
</div>
</TabItem><TabItem
label={"403"}
value={"403"}
>
<div>
</div><div>
<MimeTabs
className={"openapi-tabs__mime"}
schemaType={"response"}
>
<TabItem
label={"application/json"}
value={"application/json"}
>
<SchemaTabs
className={"openapi-tabs__schema"}
>
<TabItem
label={"Schema"}
value={"Schema"}
>
<details
style={{}}
className={"openapi-markdown__details response"}
data-collapsed={false}
open={true}
>
<summary
style={{}}
className={"openapi-markdown__details-summary-response"}
>
<strong>
Schema
</strong>
</summary><div
style={{"textAlign":"left","marginLeft":"1rem"}}
>
</div><ul
style={{"marginLeft":"1rem"}}
>
<SchemaItem
collapsible={false}
name={"detail"}
required={true}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem><SchemaItem
collapsible={false}
name={"code"}
required={false}
schemaName={"string"}
qualifierMessage={undefined}
schema={{"type":"string"}}
>
</SchemaItem>
</ul>
</details>
</TabItem><TabItem
label={"Example (from schema)"}
value={"Example (from schema)"}
>
<ResponseSamples
responseExample={"{\n \"detail\": \"string\",\n \"code\": \"string\"\n}"}
language={"json"}
>
</ResponseSamples>
</TabItem>
</SchemaTabs>
</TabItem>
</MimeTabs>
</div>
</TabItem>
</ApiTabs>
</div>
</div>