Update Secret
PUT/vault/v1/secrets/:secret_id
Update Secret
Request
Path Parameters
secret_id Secret Idrequired
- application/json
Body
required
- HeaderDTO
- MOD1
- MOD1
- SecretDTO
headerobject
anyOf
nameobject
anyOf
string
descriptionobject
anyOf
string
secretobject
anyOf
kind SecretKind (string)required
Possible values: [provider_key
]
data
objectrequired
provider ProviderKind (string)required
Possible values: [openai
, cohere
, anyscale
, deepinfra
, alephalpha
, groq
, mistralai
, anthropic
, perplexityai
, togetherai
, openrouter
, gemini
]
key Key (string)required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD1
- LifecycleDTO
- MOD1
- MOD1
- MOD1
header
object
required
nameobject
anyOf
string
descriptionobject
anyOf
string
secret
object
required
kind SecretKind (string)required
Possible values: [provider_key
]
data
object
required
provider ProviderKind (string)required
Possible values: [openai
, cohere
, anyscale
, deepinfra
, alephalpha
, groq
, mistralai
, anthropic
, perplexityai
, togetherai
, openrouter
, gemini
]
key Key (string)required
id uuidrequired
lifecycleobject
anyOfcreated_at
updated_at
updated_by_id
created_atobject
anyOf
string
updated_atobject
anyOf
string
updated_by_idobject
anyOf
string
{
"header": {
"name": "string",
"description": "string"
},
"secret": {
"kind": "provider_key",
"data": {
"provider": "openai",
"key": "string"
}
},
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"lifecycle": {}
}
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...