v1
latestSwagger 2.02026-07-17107114423.2 KBSecret
Update a Secret
post/secrets/{id}/update
Path parameters
idstring required
The ID or name of the secret
Query parameters
versioninteger required
The version number of the secret object being updated. This is required to avoid conflicting writes.
Request body
Example request
{
"Labels": {
"com.example.some-label": "some-value",
"com.example.some-other-label": "some-other-value"
},
"Driver": {
"Name": "some-driver",
"Options": {
"OptionA": "value for driver-specific option A",
"OptionB": "value for driver-specific option B"
}
},
"Templating": {
"Name": "some-driver",
"Options": {
"OptionA": "value for driver-specific option A",
"OptionB": "value for driver-specific option B"
}
}
}Response
no error