curl --request POST \
--url https://api.example.com/organization/secrets \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"name": "<string>",
"keys": [
{
"key": "<string>",
"value": "<string>"
}
],
"type": "custom",
"description": "<string>",
"tags": {},
"environment": "default"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create an organization secret.
curl --request POST \
--url https://api.example.com/organization/secrets \
--header 'Content-Type: application/json' \
--cookie fastapiusersauth= \
--data '
{
"name": "<string>",
"keys": [
{
"key": "<string>",
"value": "<string>"
}
],
"type": "custom",
"description": "<string>",
"tags": {},
"environment": "default"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Create a new secret.
custom: Arbitrary user-defined typestoken: A token, e.g. API Key, JWT Token (TBC)oauth2: OAuth2 Client Credentials (TBC)1 - 1001 - 100 elementsShow child attributes
The type of a secret.
custom, ssh-key, mtls, ca-cert 1000Show child attributes
Successful Response
Was this page helpful?