Skip to content

Create Auth State

POST
/api/auth-states/project/{project_id}
curl --request POST \
--url http://localhost:8080/api/auth-states/project/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "setup_test_case_id": "example" }'
project_id
required
Project Id
string
Media typeapplication/json
AuthStateCreate
object
name
required
Name
string
setup_test_case_id
Any of:
string
Examplegenerated
{
"name": "example",
"setup_test_case_id": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}