Create Api Key
POST/keys
Creates an API key for a user.
Args: request (Request): The request object containing the user ID in the request state.
Returns: str: The created API key.
Request
Query Parameters
workspace_id Workspace Idrequired
Responses
- 200
 - 422
 
Successful Response
- application/json
 
- Schema
 
Schema
string
Validation Error
- application/json
 
- Schema
 - Example (from schema)
 
Schema
Array [
Array [
- MOD1
 - MOD2
 ]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Loading...