update

suspend fun update(id: String, version: ULong, spec: SecretSpec): Result<Unit, ErrorResponse>

Updates labels using the version index from the latest inspect response. Copy the inspected spec and change only labels; other fields must remain unchanged. Stale versions are reported as Docker errors. No re-inspection, merging or retry is performed.