Secret
Update a Secret
post/secrets/{id}/update
Request
- Base URL/v1.49 (relative, and the document was published on a file host, not at the API’s origin)
- URL/v1.49/secrets/{id}/update
- Authnone declared
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
Changes
No recorded changes to this operation across all 4 revisions of this API.